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

Function TestNetUnix

net_unix_test.go:28–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26)
27
28func TestNetUnix(t *testing.T) {
29 fs, err := NewFS(procTestFixtures)
30 if err != nil {
31 t.Fatalf("failed to open procfs: %v", err)
32 }
33
34 got, err := fs.NetUNIX()
35 if err != nil {
36 t.Fatalf("failed to get UNIX socket data: %v", err)
37 }
38
39 testNetUNIX(t, checkInode, got)
40}
41
42func TestNetUnixNoInode(t *testing.T) {
43 fs, err := NewFS(procTestFixtures)

Callers

nothing calls this directly

Calls 3

NetUNIXMethod · 0.95
testNetUNIXFunction · 0.85
NewFSFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…