diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:15:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:15:20 +0000 |
commit | 87d772a7d708fec12f48cd8adc0dedff6e1025da (patch) | |
tree | 1fee344c64cc3f43074a01981e21126c8482a522 /src/go/collectors/go.d.plugin/modules/squidlog/logline_test.go | |
parent | Adding upstream version 1.46.3. (diff) | |
download | netdata-upstream.tar.xz netdata-upstream.zip |
Adding upstream version 1.47.0.upstream/1.47.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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}, |