summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/squidlog/logline_test.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/go/plugin/go.d/modules/squidlog/logline_test.go (renamed from src/go/collectors/go.d.plugin/modules/squidlog/logline_test.go)6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/squidlog/logline_test.go b/src/go/plugin/go.d/modules/squidlog/logline_test.go
index 4a9069e3f..cb3f399fe 100644
--- a/src/go/collectors/go.d.plugin/modules/squidlog/logline_test.go
+++ b/src/go/plugin/go.d/modules/squidlog/logline_test.go
@@ -60,6 +60,7 @@ func TestLogLine_Assign(t *testing.T) {
{input: "UDP_MISS_NOFETCH", wantLine: logLine{cacheCode: "UDP_MISS_NOFETCH"}},
{input: "UDP_INVALID", wantLine: logLine{cacheCode: "UDP_INVALID"}},
{input: "NONE", wantLine: logLine{cacheCode: "NONE"}},
+ {input: "NONE_NONE", wantLine: logLine{cacheCode: "NONE_NONE"}},
{input: emptyStr, wantLine: emptyLogLine},
{input: hyphen, wantLine: emptyLogLine, wantErr: errBadCacheCode},
{input: "TCP", wantLine: emptyLogLine, wantErr: errBadCacheCode},
@@ -173,8 +174,8 @@ func TestLogLine_Assign(t *testing.T) {
{input: "video/3gpp", wantLine: logLine{mimeType: "video"}},
{input: emptyStr, wantLine: emptyLogLine},
{input: hyphen, wantLine: emptyLogLine},
- {input: "example/example", wantLine: emptyLogLine, wantErr: errBadMimeType},
- {input: "unknown/example", wantLine: emptyLogLine, wantErr: errBadMimeType},
+ {input: "example/example", wantLine: emptyLogLine},
+ {input: "unknown/example", wantLine: emptyLogLine},
{input: "audio", wantLine: emptyLogLine, wantErr: errBadMimeType},
{input: "/", wantLine: emptyLogLine, wantErr: errBadMimeType},
},
@@ -274,6 +275,7 @@ func TestLogLine_verify(t *testing.T) {
{input: "UDP_MISS_NOFETCH"},
{input: "UDP_INVALID"},
{input: "NONE"},
+ {input: "NONE_NONE"},
{input: emptyStr},
{input: "TCP", wantErr: errBadCacheCode},
{input: "UDP", wantErr: errBadCacheCode},