add hook test code support

This commit is contained in:
vcaesar 2020-02-22 12:09:45 -04:00
parent 6c89eeae62
commit b931a62015
3 changed files with 19 additions and 0 deletions

2
go.mod
View File

@ -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
View 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
View 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)
}