package client import "testing" func TestKillProcessByPIDInvalid(t *testing.T) { ok, msg := killProcessByPID("not-a-pid") if ok { t.Fatal("expected failure for invalid pid") } if msg == "" { t.Fatal("expected error message") } }