summaryrefslogtreecommitdiff
path: root/internal/collector/parse_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-14 00:12:54 +0200
committerPaul Buetow <paul@buetow.org>2026-02-14 00:12:54 +0200
commit5e416d613f61cfc16277d343e30c3c8a00b21b35 (patch)
treed73b06932e9806c21f4ff7a8bf3f985b361f82cf /internal/collector/parse_test.go
parent956f84321860bd8e318545564474037cbd3b6fd9 (diff)
remove version and some refactoring
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},