summaryrefslogtreecommitdiffhomepage
path: root/hugolib
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-10-09 10:49:52 +0200
committerBjørn Erik Pedersen <[email protected]>2019-10-09 10:49:52 +0200
commit339ee37143ca5a6bb22bbc1b0468d785f450cfb7 (patch)
treedb1eea66b7bad1a977820c14ad1248f24fb71097 /hugolib
parentf10db101a18f5cad332c9398136f77e35a169d52 (diff)
downloadhugo-339ee37143ca5a6bb22bbc1b0468d785f450cfb7.tar.gz
hugo-339ee37143ca5a6bb22bbc1b0468d785f450cfb7.zip
Simplify test output to simplify diffing
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/testhelpers_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/hugolib/testhelpers_test.go b/hugolib/testhelpers_test.go
index 6e00a8ee0..353cc9ec6 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)
}
}