mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
add gops test code support
This commit is contained in:
parent
c7ce55023a
commit
b7a76b9be5
@ -150,6 +150,21 @@ func TestBitmap(t *testing.T) {
|
|||||||
tt.NotNil(t, bit1)
|
tt.NotNil(t, bit1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestPs(t *testing.T) {
|
||||||
|
id, err := Pids()
|
||||||
|
tt.Not(t, "[]", id)
|
||||||
|
tt.IsType(t, "[]int32", id)
|
||||||
|
tt.Nil(t, err)
|
||||||
|
|
||||||
|
b, e := PidExists(id[0])
|
||||||
|
tt.Bool(t, b)
|
||||||
|
tt.Nil(t, e)
|
||||||
|
|
||||||
|
n, e := FindName(id[0])
|
||||||
|
tt.NotEmpty(t, n)
|
||||||
|
tt.Nil(t, e)
|
||||||
|
}
|
||||||
|
|
||||||
// func TestAlert(t *testing.T) {
|
// func TestAlert(t *testing.T) {
|
||||||
// go func() {
|
// go func() {
|
||||||
// MilliSleep(200)
|
// MilliSleep(200)
|
||||||
|
Loading…
Reference in New Issue
Block a user