mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 17:59:12 +00:00
add more gops test code
This commit is contained in:
parent
8a4154aa60
commit
af1d0d2d00
1 changed files with 14 additions and 0 deletions
|
|
@ -168,6 +168,20 @@ func TestPs(t *testing.T) {
|
|||
n, e := FindName(id[0])
|
||||
tt.NotEmpty(t, n)
|
||||
tt.Nil(t, e)
|
||||
|
||||
n1, e := FindNames()
|
||||
tt.Not(t, "[]", n1)
|
||||
tt.IsType(t, "[]string", n1)
|
||||
tt.Nil(t, e)
|
||||
|
||||
id, err = FindIds(n1[0])
|
||||
tt.Not(t, "[]", id)
|
||||
tt.IsType(t, "[]int32", id)
|
||||
tt.Nil(t, err)
|
||||
|
||||
n, e = FindPath(id[0])
|
||||
tt.NotEmpty(t, n)
|
||||
tt.Nil(t, e)
|
||||
}
|
||||
|
||||
// func TestAlert(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue