-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinenoise_test.go
43 lines (30 loc) · 1.14 KB
/
linenoise_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package linenoise
// ////////////////////////////////////////////////////////////////////////////////// //
import (
"testing"
. "github.com/essentialkaos/check"
)
// ////////////////////////////////////////////////////////////////////////////////// //
func Test(t *testing.T) { TestingT(t) }
type LinenoiseSuite struct{}
// ////////////////////////////////////////////////////////////////////////////////// //
var _ = Suite(&LinenoiseSuite{})
// ////////////////////////////////////////////////////////////////////////////////// //
// This is not a real test, is just basic compilation test
func (s *LinenoiseSuite) TestSimple(c *C) {
c.Assert(ErrKillSignal, NotNil)
}
// This is not a real test, is just basic compilation test
func (s *LinenoiseSuite) TestSetHintColor(c *C) {
c.Assert(SetHintColor(1, false), NotNil)
c.Assert(SetHintColor(38, false), NotNil)
c.Assert(SetHintColor(120, false), NotNil)
c.Assert(SetHintColor(31, false), IsNil)
c.Assert(SetHintColor(92, false), IsNil)
}
func (s *LinenoiseSuite) TestNilHandler(c *C) {
SetCompletionHandler(nil)
c.Assert(complHandler, NotNil)
SetHintHandler(nil)
c.Assert(hintHandler, NotNil)
}