|
|
@ -21,10 +21,10 @@ func TestIOCountersByFileParsing(t *testing.T) {
|
|
|
|
assert.Nil(t, err, "Temporary file creation failed: ", err)
|
|
|
|
assert.Nil(t, err, "Temporary file creation failed: ", err)
|
|
|
|
|
|
|
|
|
|
|
|
cases := [4][2]string{
|
|
|
|
cases := [4][2]string{
|
|
|
|
[2]string{"eth0: ", "eth1: "},
|
|
|
|
{"eth0: ", "eth1: "},
|
|
|
|
[2]string{"eth0:0: ", "eth1:0: "},
|
|
|
|
{"eth0:0: ", "eth1:0: "},
|
|
|
|
[2]string{"eth0:", "eth1:"},
|
|
|
|
{"eth0:", "eth1:"},
|
|
|
|
[2]string{"eth0:0:", "eth1:0:"},
|
|
|
|
{"eth0:0:", "eth1:0:"},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for _, testCase := range cases {
|
|
|
|
for _, testCase := range cases {
|
|
|
|
err = tmpfile.Truncate(0)
|
|
|
|
err = tmpfile.Truncate(0)
|
|
|
|