Skip to content

Commit

Permalink
Simplify test output to simplify diffing
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Oct 9, 2019
1 parent f10db10 commit 339ee37
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hugolib/testhelpers_test.go
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 339ee37

Please sign in to comment.