gitee.com/h79/goutils@v1.22.10/common/system/process_test.go (about) 1 package system 2 3 import "testing" 4 5 func TestFindProcessByName(t *testing.T) { 6 } 7 8 func TestGetProcesses(t *testing.T) { 9 10 processes, err := Processes() 11 if err != nil { 12 return 13 } 14 for _, process := range processes { 15 t.Log(process.Name()) 16 } 17 } 18 19 func TestFindProcessByPid(t *testing.T) {}