(t *testing.T)
| 126 | } |
| 127 | |
| 128 | func TestProcStatVirtualMemory(t *testing.T) { |
| 129 | s, err := testProcStat(26231) |
| 130 | if err != nil { |
| 131 | t.Fatal(err) |
| 132 | } |
| 133 | |
| 134 | if want, have := 56274944, int(s.VirtualMemory()); want != have { |
| 135 | t.Errorf("want virtual memory %d, have %d", want, have) |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | func TestProcStatResidentMemory(t *testing.T) { |
| 140 | s, err := testProcStat(26231) |
nothing calls this directly
no test coverage detected
searching dependent graphs…