(t *testing.T)
| 137 | } |
| 138 | |
| 139 | func TestProcStatResidentMemory(t *testing.T) { |
| 140 | s, err := testProcStat(26231) |
| 141 | if err != nil { |
| 142 | t.Fatal(err) |
| 143 | } |
| 144 | |
| 145 | if want, have := 1981*os.Getpagesize(), s.ResidentMemory(); want != have { |
| 146 | t.Errorf("want resident memory %d, have %d", want, have) |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | func TestProcStatStartTime(t *testing.T) { |
| 151 | s, err := testProcStat(26231) |
nothing calls this directly
no test coverage detected