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

Function testProcStat

proc_stat_test.go:176–187  ·  view source on GitHub ↗
(pid int)

Source from the content-addressed store, hash-verified

174}
175
176func testProcStat(pid int) (ProcStat, error) {
177 fs, err := NewFS(procTestFixtures)
178 if err != nil {
179 return ProcStat{}, err
180 }
181 p, err := fs.Proc(pid)
182 if err != nil {
183 return ProcStat{}, err
184 }
185
186 return p.Stat()
187}

Callers 5

TestProcStatCommFunction · 0.85
TestProcStatStartTimeFunction · 0.85
TestProcStatCPUTimeFunction · 0.85

Calls 3

ProcMethod · 0.95
NewFSFunction · 0.70
StatMethod · 0.45

Tested by

no test coverage detected