shirou_gopsutil/process_test.go

17 lines
215 B
Go
Raw Normal View History

package gopsutil
import (
"encoding/json"
"fmt"
"testing"
)
func Test(t *testing.T) {
v, err := findProcess(0)
if err != nil {
t.Errorf("error %v", err)
}
d, _ := json.Marshal(v)
fmt.Printf("%s\n", d)
}