(t *testing.T)
| 108 | } |
| 109 | |
| 110 | func TestProcStatComm(t *testing.T) { |
| 111 | s1, err := testProcStat(26231) |
| 112 | if err != nil { |
| 113 | t.Fatal(err) |
| 114 | } |
| 115 | if want, have := "vim", s1.Comm; want != have { |
| 116 | t.Errorf("want comm %s, have %s", want, have) |
| 117 | } |
| 118 | |
| 119 | s2, err := testProcStat(584) |
| 120 | if err != nil { |
| 121 | t.Fatal(err) |
| 122 | } |
| 123 | if want, have := "(a b ) ( c d) ", s2.Comm; want != have { |
| 124 | t.Errorf("want comm %s, have %s", want, have) |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | func TestProcStatVirtualMemory(t *testing.T) { |
| 129 | s, err := testProcStat(26231) |
nothing calls this directly
no test coverage detected
searching dependent graphs…