(t *testing.T)
| 39 | } |
| 40 | |
| 41 | func TestAllProcs(t *testing.T) { |
| 42 | procs, err := getProcFixtures(t).AllProcs() |
| 43 | if err != nil { |
| 44 | t.Fatal(err) |
| 45 | } |
| 46 | sort.Sort(procs) |
| 47 | for i, p := range []*Proc{{PID: 584}, {PID: 26231}} { |
| 48 | if want, have := p.PID, procs[i].PID; want != have { |
| 49 | t.Errorf("want processes %d, have %d", want, have) |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | func TestCmdLine(t *testing.T) { |
| 55 | for _, tt := range []struct { |
nothing calls this directly
no test coverage detected