(t *testing.T)
| 111 | } |
| 112 | |
| 113 | func TestDataBytes(t *testing.T) { |
| 114 | statm, err := testProcStatm(26231) |
| 115 | if err != nil { |
| 116 | t.Fatal(err) |
| 117 | } |
| 118 | |
| 119 | if want, have := statm.Data*uint64(os.Getpagesize()), statm.DataBytes(); want != have { |
| 120 | t.Errorf("want data + stack size %d, have %d", want, have) |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | func testProcStatm(pid int) (ProcStatm, error) { |
| 125 | fs, err := NewFS(procTestFixtures) |
nothing calls this directly
no test coverage detected