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

Function TestFileDescriptorsLen

proc_test.go:236–248  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

234}
235
236func TestFileDescriptorsLen(t *testing.T) {
237 p1, err := getProcFixtures(t).Proc(26231)
238 if err != nil {
239 t.Fatal(err)
240 }
241 l, err := p1.FileDescriptorsLen()
242 if err != nil {
243 t.Fatal(err)
244 }
245 if want, have := 5, l; want != have {
246 t.Errorf("want fds %d, have %d", want, have)
247 }
248}
249
250func TestFileDescriptorsInfo(t *testing.T) {
251 p1, err := getProcFixtures(t).Proc(26231)

Callers

nothing calls this directly

Calls 3

getProcFixturesFunction · 0.85
ProcMethod · 0.80
FileDescriptorsLenMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…