mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
parser: Rename stringifyYAMLMapKeys to stringifyMapKeys
This commit is contained in:
parent
51213e0be1
commit
d4beef0d2b
2 changed files with 9 additions and 9 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue