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:
Aleksey Zhukov 2017-07-08 21:16:35 +03:00 committed by Ben Kochie
commit 7a914e58f2
5 changed files with 581 additions and 175 deletions

View file

@ -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)
}