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

Function TestProcStatusUIDs

proc_status_test.go:96–110  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

94}
95
96func TestProcStatusUIDs(t *testing.T) {
97 p, err := getProcFixtures(t).Proc(26231)
98 if err != nil {
99 t.Fatal(err)
100 }
101
102 s, err := p.NewStatus()
103 if err != nil {
104 t.Fatal(err)
105 }
106
107 if want, have := [4]uint64{1000, 1000, 1000, 0}, s.UIDs; want != have {
108 t.Errorf("want uids %v, have %v", want, have)
109 }
110}
111
112func TestProcStatusGIDs(t *testing.T) {
113 p, err := getProcFixtures(t).Proc(26231)

Callers

nothing calls this directly

Calls 3

getProcFixturesFunction · 0.85
ProcMethod · 0.80
NewStatusMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…