aboutsummaryrefslogtreecommitdiff
path: root/tagpreprocessor_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-08-14 01:02:32 +0700
committerShulhan <ms@kilabit.info>2022-08-14 14:49:23 +0700
commit2965b17ccc24abde2346c20ee1f9384ae6e12f20 (patch)
tree1e656f22c28454d1199d75e3b0e504d38b582218 /tagpreprocessor_test.go
parent97cdab5a7b6f2d37a53c55045e90c230c6c959ad (diff)
downloadhaminer-2965b17ccc24abde2346c20ee1f9384ae6e12f20.tar.xz
all: update the go.mod
Set the minimum Go to 1.18 and update the share modules. When this program written, the ini library does not have the Unmarshal function, so we load the configuration by reading each key and parse it manually. Now that we have Unmarshal function, the way we parse the configuration is simplified so does the way configuration written. This changes the accept_backend, capture_request_header written. Instead of using comma to set multiple values, now it must be written one key and one value on different line.
Diffstat (limited to 'tagpreprocessor_test.go')
-rw-r--r--tagpreprocessor_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tagpreprocessor_test.go b/tagpreprocessor_test.go
index c5f59e9..2a5a785 100644
--- a/tagpreprocessor_test.go
+++ b/tagpreprocessor_test.go
@@ -48,11 +48,11 @@ func TestNewTagPreprocessor(t *testing.T) {
got, err := newTagPreprocessor(c.name, c.regex, c.repl)
if err != nil {
- test.Assert(t, "error", c.expErr, err.Error(), true)
+ test.Assert(t, `error`, c.expErr, err.Error())
continue
}
- test.Assert(t, "TagPreprocessor", c.exp, got, true)
+ test.Assert(t, `TagPreprocessor`, c.exp, got)
}
}
@@ -124,6 +124,6 @@ func TestPreprocess(t *testing.T) {
t.Log("got: ", got)
}
- test.Assert(t, "preprocess", c.exp, got, true)
+ test.Assert(t, `preprocess`, c.exp, got)
}
}