From 8a4154aa600c1e244f0fa6441f4ca59ae42a0706 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sat, 18 Apr 2020 14:20:25 -0400 Subject: [PATCH] add Process() function test code --- robotgo_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/robotgo_test.go b/robotgo_test.go index 4f78e07..92f7603 100644 --- a/robotgo_test.go +++ b/robotgo_test.go @@ -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)