mirror of
https://github.com/robotn/gohook.git
synced 2024-11-24 13:26:54 +08:00
add hook test code support
This commit is contained in:
parent
6c89eeae62
commit
b931a62015
2
go.mod
2
go.mod
@ -1,3 +1,5 @@
|
||||
module github.com/robotn/gohook
|
||||
|
||||
go 1.13
|
||||
|
||||
require github.com/vcaesar/tt v0.0.0-20200219144246-a190abe69d64
|
||||
|
2
go.sum
Normal file
2
go.sum
Normal file
@ -0,0 +1,2 @@
|
||||
github.com/vcaesar/tt v0.0.0-20200219144246-a190abe69d64 h1:MwxT8hyvPcPafJ2LDmoFuH7Xpz5LZ6W3dKzwVQAHD/k=
|
||||
github.com/vcaesar/tt v0.0.0-20200219144246-a190abe69d64/go.mod h1:GHPxQYhn+7OgKakRusH7KJ0M5MhywoeLb8Fcffs/Gtg=
|
15
hook_test.go
Normal file
15
hook_test.go
Normal file
@ -0,0 +1,15 @@
|
||||
package hook
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/vcaesar/tt"
|
||||
)
|
||||
|
||||
func TestAdd(t *testing.T) {
|
||||
fmt.Println("hook test...")
|
||||
|
||||
e := Start()
|
||||
tt.NotNil(t, e)
|
||||
}
|
Loading…
Reference in New Issue
Block a user