From: Bjørn Erik Pedersen Date: Wed, 9 Oct 2019 08:49:52 +0000 (+0200) Subject: Simplify test output to simplify diffing X-Git-Tag: v0.59.0~23 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=339ee3714;p=brevno-suite%2Fhugo Simplify test output to simplify diffing --- diff --git a/hugolib/testhelpers_test.go b/hugolib/testhelpers_test.go index 6e00a8ee..353cc9ec 100644 --- a/hugolib/testhelpers_test.go +++ b/hugolib/testhelpers_test.go @@ -917,13 +917,12 @@ func content(c resource.ContentProvider) string { func dumpPages(pages ...page.Page) { fmt.Println("---------") - for i, p := range pages { + for _, p := range pages { var meta interface{} if p.File() != nil && p.File().FileInfo() != nil { meta = p.File().FileInfo().Meta() } - fmt.Printf("%d: Kind: %s Title: %-10s RelPermalink: %-10s Path: %-10s sections: %s Lang: %s Meta: %v\n", - i+1, + fmt.Printf("Kind: %s Title: %-10s RelPermalink: %-10s Path: %-10s sections: %s Lang: %s Meta: %v\n", p.Kind(), p.Title(), p.RelPermalink(), p.Path(), p.SectionsPath(), p.Lang(), meta) } }