mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 17:59:12 +00:00
add Process() function test code
This commit is contained in:
parent
b7a76b9be5
commit
8a4154aa60
1 changed files with 5 additions and 0 deletions
|
|
@ -156,6 +156,11 @@ func TestPs(t *testing.T) {
|
|||
tt.IsType(t, "[]int32", id)
|
||||
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])
|
||||
tt.Bool(t, b)
|
||||
tt.Nil(t, e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue