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

Function TestProcNetDevSNMP6

net_dev_snmp6_test.go:37–51  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35}
36
37func TestProcNetDevSNMP6(t *testing.T) {
38 p, err := getProcFixtures(t).Proc(26231)
39 if err != nil {
40 t.Fatal(err)
41 }
42
43 procNetDevSNMP6, err := p.NetDevSNMP6()
44 if err != nil {
45 t.Fatal(err)
46 }
47
48 if err := validateNetDevSNMP6(procNetDevSNMP6); err != nil {
49 t.Error(err.Error())
50 }
51}
52
53func validateNetDevSNMP6(have NetDevSNMP6) error {
54 var wantNetDevSNMP6 = map[string]map[string]uint64{

Callers

nothing calls this directly

Calls 4

getProcFixturesFunction · 0.85
validateNetDevSNMP6Function · 0.85
ProcMethod · 0.80
NetDevSNMP6Method · 0.45

Tested by

no test coverage detected