Skip to content

Commit b7a76b9

Browse files
committed
add gops test code support
1 parent c7ce550 commit b7a76b9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

robotgo_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,21 @@ func TestBitmap(t *testing.T) {
150150
tt.NotNil(t, bit1)
151151
}
152152

153+
func TestPs(t *testing.T) {
154+
id, err := Pids()
155+
tt.Not(t, "[]", id)
156+
tt.IsType(t, "[]int32", id)
157+
tt.Nil(t, err)
158+
159+
b, e := PidExists(id[0])
160+
tt.Bool(t, b)
161+
tt.Nil(t, e)
162+
163+
n, e := FindName(id[0])
164+
tt.NotEmpty(t, n)
165+
tt.Nil(t, e)
166+
}
167+
153168
// func TestAlert(t *testing.T) {
154169
// go func() {
155170
// MilliSleep(200)

0 commit comments

Comments
 (0)