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

Function TestProcStatStartTime

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

Source from the content-addressed store, hash-verified

148}
149
150func TestProcStatStartTime(t *testing.T) {
151 s, err := testProcStat(26231)
152 if err != nil {
153 t.Fatal(err)
154 }
155
156 time, err := s.StartTime()
157 if err != nil {
158 t.Fatal(err)
159 }
160 if want, have := 1418184099.75, time; want != have {
161 t.Errorf("want start time %f, have %f", want, have)
162 }
163}
164
165func TestProcStatCPUTime(t *testing.T) {
166 s, err := testProcStat(26231)

Callers

nothing calls this directly

Calls 2

testProcStatFunction · 0.85
StartTimeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…