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

Function TestProcStatVirtualMemory

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

Source from the content-addressed store, hash-verified

126}
127
128func 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
139func TestProcStatResidentMemory(t *testing.T) {
140 s, err := testProcStat(26231)

Callers

nothing calls this directly

Calls 2

testProcStatFunction · 0.85
VirtualMemoryMethod · 0.80

Tested by

no test coverage detected