From d8a0d97df27244c8f958dea4cb8bbb89121e355d Mon Sep 17 00:00:00 2001 From: Chris O'Haver Date: Thu, 27 May 2021 07:26:14 -0400 Subject: deprecate Normalize and MustNormalize (#4648) * deprecate normalize and mustnormalize Signed-off-by: Chris O'Haver * add runtime warning Signed-off-by: Chris O'Haver * elaborate runtime warning Signed-off-by: Chris O'Haver * include caller info Signed-off-by: Chris O'Haver --- plugin/normalize_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/normalize_test.go') 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 { -- cgit v1.2.3