add gops test code support

This commit is contained in:
vcaesar 2020-04-17 11:34:23 -04:00
parent c7ce55023a
commit b7a76b9be5

View File

@ -150,6 +150,21 @@ func TestBitmap(t *testing.T) {
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) {
// go func() {
// MilliSleep(200)