mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
add Process() function test code
This commit is contained in:
parent
b7a76b9be5
commit
8a4154aa60
@ -156,6 +156,11 @@ func TestPs(t *testing.T) {
|
|||||||
tt.IsType(t, "[]int32", id)
|
tt.IsType(t, "[]int32", id)
|
||||||
tt.Nil(t, err)
|
tt.Nil(t, err)
|
||||||
|
|
||||||
|
ps, e := Process()
|
||||||
|
tt.Not(t, "[]", ps)
|
||||||
|
tt.IsType(t, "[]robotgo.Nps", ps)
|
||||||
|
tt.Nil(t, err)
|
||||||
|
|
||||||
b, e := PidExists(id[0])
|
b, e := PidExists(id[0])
|
||||||
tt.Bool(t, b)
|
tt.Bool(t, b)
|
||||||
tt.Nil(t, e)
|
tt.Nil(t, e)
|
||||||
|
Loading…
Reference in New Issue
Block a user