From b7089eeea50948112c31f79517989bf864b4823f Mon Sep 17 00:00:00 2001 From: razonyang Date: Thu, 20 Jun 2024 00:33:43 +0800 Subject: [PATCH] tests: Refine test cases for BenchmarkTaxonomiesGetTerms --- hugolib/taxonomy_test.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/hugolib/taxonomy_test.go b/hugolib/taxonomy_test.go index e96b82d3977..e43cbcf10a9 100644 --- a/hugolib/taxonomy_test.go +++ b/hugolib/taxonomy_test.go @@ -986,19 +986,8 @@ GetTerms.tags: {{ range .GetTerms "tags" }}{{ .Title }}|{{ end }} -- content/_index.md -- ` - tagsVariants := []string{ - "tags: ['a']", - "tags: ['a', 'b']", - "tags: ['a', 'b', 'c']", - "tags: ['a', 'b', 'c', 'd']", - "tags: ['a', 'b', 'd', 'e']", - "tags: ['a', 'b', 'c', 'd', 'e']", - "tags: ['a', 'd']", - "tags: ['a', 'f']", - } - for i := 1; i < numPages; i++ { - tags := tagsVariants[i%len(tagsVariants)] + tags := fmt.Sprintf("tags: ['a', 'b%d', 'c%d']", i+1, i+1) files += fmt.Sprintf("\n-- content/posts/p%d.md --\n---\n%s\n---", i+1, tags) } cfg := IntegrationTestConfig{