summaryrefslogtreecommitdiff
path: root/internal/mapr/logformat/default_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-10-09 21:10:29 +0300
committerPaul Buetow <paul@buetow.org>2021-10-10 13:36:41 +0300
commit97747ea0f3178f7f5890512d483fdccaa82846b0 (patch)
tree9ff1335ca26afc90e55fd6de416457e252d75a35 /internal/mapr/logformat/default_test.go
parent7a7169791a64190e1002e38bc9c04ad0d5c1ce1f (diff)
vetting and linting and some code restyling
Diffstat (limited to 'internal/mapr/logformat/default_test.go')
-rw-r--r--internal/mapr/logformat/default_test.go24
1 files changed, 16 insertions, 8 deletions
diff --git a/internal/mapr/logformat/default_test.go b/internal/mapr/logformat/default_test.go
index a777156..28e1acc 100644
--- a/internal/mapr/logformat/default_test.go
+++ b/internal/mapr/logformat/default_test.go
@@ -32,49 +32,57 @@ func TestDefaultLogFormat(t *testing.T) {
if val, ok := fields["$severity"]; !ok {
t.Errorf("Expected field '$severity', but no such field there in '%s'\n", input)
} else if val != "INFO" {
- t.Errorf("Expected 'Info' stored in field '$severity', but got '%s' in '%s'\n", val, input)
+ t.Errorf("Expected 'Info' stored in field '$severity', but got '%s' in '%s'\n",
+ val, input)
}
if val, ok := fields["$time"]; !ok {
t.Errorf("Expected field '$time', but no such field there in '%s'\n", input)
} else if val != time {
- t.Errorf("Expected '%s' stored in field '$time', but got '%s' in '%s'\n", time, val, input)
+ t.Errorf("Expected '%s' stored in field '$time', but got '%s' in '%s'\n",
+ time, val, input)
}
if val, ok := fields["$date"]; !ok {
t.Errorf("Expected field '$date', but no such field there in '%s'\n", input)
} else if val != date {
- t.Errorf("Expected '%s' stored in field '$date', but got '%s' in '%s'\n", date, val, input)
+ t.Errorf("Expected '%s' stored in field '$date', but got '%s' in '%s'\n",
+ date, val, input)
}
if val, ok := fields["$hour"]; !ok {
t.Errorf("Expected field '$hour', but no such field there in '%s'\n", input)
} else if val != hour {
- t.Errorf("Expected '%s' stored in field '$hour', but got '%s' in '%s'\n", hour, val, input)
+ t.Errorf("Expected '%s' stored in field '$hour', but got '%s' in '%s'\n",
+ hour, val, input)
}
if val, ok := fields["$minute"]; !ok {
t.Errorf("Expected field '$minute', but no such field there in '%s'\n", input)
} else if val != minute {
- t.Errorf("Expected '%s' stored in field '$minute', but got '%s' in '%s'\n", minute, val, input)
+ t.Errorf("Expected '%s' stored in field '$minute', but got '%s' in '%s'\n",
+ minute, val, input)
}
if val, ok := fields["$second"]; !ok {
t.Errorf("Expected field '$second', but no such field there in '%s'\n", input)
} else if val != second {
- t.Errorf("Expected '%s' stored in field '$second', but got '%s' in '%s'\n", second, val, input)
+ t.Errorf("Expected '%s' stored in field '$second', but got '%s' in '%s'\n",
+ second, val, input)
}
if val, ok := fields["foo"]; !ok {
t.Errorf("Expected field 'foo', but no such field there in '%s'\n", input)
} else if val != "bar" {
- t.Errorf("Expected 'bar' stored in field 'foo', but got '%s' in '%s'\n", val, input)
+ t.Errorf("Expected 'bar' stored in field 'foo', but got '%s' in '%s'\n",
+ val, input)
}
if val, ok := fields["bar"]; !ok {
t.Errorf("Expected field 'bar', but no such field there in '%s'\n", input)
} else if val != "foo" {
- t.Errorf("Expected 'foo' stored in field 'bar', but got '%s' in '%s'\n", val, input)
+ t.Errorf("Expected 'foo' stored in field 'bar', but got '%s' in '%s'\n",
+ val, input)
}
}