MCPcopy Create free account
hub / github.com/prometheus/procfs / TestProcStatResidentMemory

Function TestProcStatResidentMemory

proc_stat_test.go:139–148  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

137}
138
139func 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
150func TestProcStatStartTime(t *testing.T) {
151 s, err := testProcStat(26231)

Callers

nothing calls this directly

Calls 2

testProcStatFunction · 0.85
ResidentMemoryMethod · 0.80

Tested by

no test coverage detected