diff options
author | 2021-05-27 07:26:14 -0400 | |
---|---|---|
committer | 2021-05-27 13:26:14 +0200 | |
commit | d8a0d97df27244c8f958dea4cb8bbb89121e355d (patch) | |
tree | 9d2b733dcc213463cfee98d331d7a92e7689dc01 /plugin/normalize_test.go | |
parent | b56f2efe54bcfafa614f7b5f1acb876d8d80c11b (diff) | |
download | coredns-d8a0d97df27244c8f958dea4cb8bbb89121e355d.tar.gz coredns-d8a0d97df27244c8f958dea4cb8bbb89121e355d.tar.zst coredns-d8a0d97df27244c8f958dea4cb8bbb89121e355d.zip |
deprecate Normalize and MustNormalize (#4648)
* deprecate normalize and mustnormalize
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
* add runtime warning
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
* elaborate runtime warning
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
* include caller info
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin/normalize_test.go')
-rw-r--r-- | plugin/normalize_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/normalize_test.go b/plugin/normalize_test.go index ac761f7ea..434bfb6f2 100644 --- a/plugin/normalize_test.go +++ b/plugin/normalize_test.go @@ -71,7 +71,7 @@ func TestNameNormalize(t *testing.T) { } } -func TestHostNormalize(t *testing.T) { +func TestHostNormalizeExact(t *testing.T) { tests := []struct { in string out []string @@ -85,7 +85,7 @@ func TestHostNormalize(t *testing.T) { } for i := range tests { - actual := Host(tests[i].in).Normalize() + actual := Host(tests[i].in).NormalizeExact() expected := tests[i].out sort.Strings(expected) for j := range expected { |