summaryrefslogtreecommitdiff
path: root/internal/collector/parse_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/collector/parse_test.go')
-rw-r--r--internal/collector/parse_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/collector/parse_test.go b/internal/collector/parse_test.go
index 6edac33..ec77067 100644
--- a/internal/collector/parse_test.go
+++ b/internal/collector/parse_test.go
@@ -6,12 +6,12 @@ import (
func TestParseCPULine(t *testing.T) {
tests := []struct {
- name string
- line string
- wantName string
- wantUser int64
+ name string
+ line string
+ wantName string
+ wantUser int64
wantTotal int64
- wantErr bool
+ wantErr bool
}{
{"normal", "cpu 100 0 50 200 0 0 0 0 0 0", "cpu", 100, 350, false},
{"cpu0", "cpu0 10 0 5 80 0 0 0 0 0 0", "cpu0", 10, 95, false},