Add parsing /proc/net/snmp6 file for netstat-linux (#615)
* Add parsing /proc/net/snmp6 file * add /proc/net/snmp6 fixture * fix e2e test * gofmt * remove unuser variable * safe checks * add tests * change help format
This commit is contained in:
parent
cb14fff6c6
commit
7a914e58f2
5 changed files with 581 additions and 175 deletions
|
|
@ -32,7 +32,7 @@ func testSockStats(t *testing.T, fixture string) {
|
|||
|
||||
defer file.Close()
|
||||
|
||||
sockStats, err := parseSockStats(file, fileName)
|
||||
sockStats, err := parseSockStats(file, fixture)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue