summaryrefslogtreecommitdiff
path: root/replacer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'replacer_test.go')
-rw-r--r--replacer_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/replacer_test.go b/replacer_test.go
index a30a75d..435582b 100644
--- a/replacer_test.go
+++ b/replacer_test.go
@@ -85,7 +85,7 @@ func TestReplacerSet(t *testing.T) {
}
}
-func TestReplacerReplaceAll(t *testing.T) {
+func TestReplacerReplaceKnown(t *testing.T) {
rep := replacer{
providers: []ReplacementFunc{
// split our possible vars to two functions (to test if both functions are called)
@@ -148,7 +148,7 @@ func TestReplacerReplaceAll(t *testing.T) {
expected: "val1 {nope} test-123 ",
},
} {
- actual := rep.ReplaceAll(tc.testInput, "EMPTY")
+ actual := rep.ReplaceKnown(tc.testInput, "EMPTY")
// test if all are replaced as expected
if actual != tc.expected {