mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
hugolib: Simplify some test loops
This commit is contained in:
@@ -53,14 +53,11 @@ func TestByCountOrderOfTaxonomies(t *testing.T) {
|
||||
//
|
||||
func TestTaxonomiesWithAndWithoutContentFile(t *testing.T) {
|
||||
for _, uglyURLs := range []bool{false, true} {
|
||||
t.Run(fmt.Sprintf("uglyURLs=%t", uglyURLs), func(t *testing.T) {
|
||||
for _, preserveTaxonomyNames := range []bool{false, true} {
|
||||
t.Run(fmt.Sprintf("preserveTaxonomyNames=%t", preserveTaxonomyNames), func(t *testing.T) {
|
||||
doTestTaxonomiesWithAndWithoutContentFile(t, preserveTaxonomyNames, uglyURLs)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
for _, preserveTaxonomyNames := range []bool{false, true} {
|
||||
t.Run(fmt.Sprintf("uglyURLs=%t,preserveTaxonomyNames=%t", uglyURLs, preserveTaxonomyNames), func(t *testing.T) {
|
||||
doTestTaxonomiesWithAndWithoutContentFile(t, preserveTaxonomyNames, uglyURLs)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user