From d4beef0d2bb8f6481fa80e1d938454a7d4e38814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 12 Feb 2018 17:32:42 +0100 Subject: parser: Rename stringifyYAMLMapKeys to stringifyMapKeys --- parser/frontmatter_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parser/frontmatter_test.go') diff --git a/parser/frontmatter_test.go b/parser/frontmatter_test.go index 9ac974951..4d28facb2 100644 --- a/parser/frontmatter_test.go +++ b/parser/frontmatter_test.go @@ -353,7 +353,7 @@ func TestStringifyYAMLMapKeys(t *testing.T) { } for i, c := range cases { - res := stringifyYAMLMapKeys(c.input) + res := stringifyMapKeys(c.input) if !reflect.DeepEqual(res, c.want) { t.Errorf("[%d] given %q\nwant: %q\n got: %q", i, c.input, c.want, res) } @@ -387,7 +387,7 @@ func BenchmarkStringifyMapKeysStringsOnlyInterfaceMaps(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - stringifyYAMLMapKeys(maps[i]) + stringifyMapKeys(maps[i]) } } @@ -429,7 +429,7 @@ func BenchmarkStringifyMapKeysIntegers(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - stringifyYAMLMapKeys(maps[i]) + stringifyMapKeys(maps[i]) } } func doBenchmarkFrontmatter(b *testing.B, fileformat string, numTags int) { -- cgit v1.2.3