summaryrefslogtreecommitdiffstats
path: root/parser/frontmatter_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/frontmatter_test.go')
-rw-r--r--parser/frontmatter_test.go6
1 files changed, 3 insertions, 3 deletions
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) {