summaryrefslogtreecommitdiffstats
path: root/hugolib/testhelpers_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-07-14 21:47:26 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-07-14 21:47:26 +0200
commiteb2a500367780b07d67c301ce7c866e6b67aa687 (patch)
tree5af5b1a8257da75f70621379c5aaad2f742233eb /hugolib/testhelpers_test.go
parent5cb52c23150032b3fdb211a095745c512369b463 (diff)
Adjust a test helper
Diffstat (limited to 'hugolib/testhelpers_test.go')
-rw-r--r--hugolib/testhelpers_test.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/hugolib/testhelpers_test.go b/hugolib/testhelpers_test.go
index 451022e5c..ba3965675 100644
--- a/hugolib/testhelpers_test.go
+++ b/hugolib/testhelpers_test.go
@@ -83,7 +83,7 @@ type sitesBuilder struct {
// Default toml
configFormat string
configFileSet bool
- configSet bool
+ configSet bool
// Default is empty.
// TODO(bep) revisit this and consider always setting it to something.
@@ -1007,12 +1007,8 @@ func dumpPagesLinks(pages ...page.Page) {
func dumpPages(pages ...page.Page) {
fmt.Println("---------")
for _, p := range pages {
- var meta interface{}
- if p.File() != nil && p.File().FileInfo() != nil {
- meta = p.File().FileInfo().Meta()
- }
- 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)
+ fmt.Printf("Kind: %s Title: %-10s RelPermalink: %-10s Path: %-10s sections: %s Lang: %s\n",
+ p.Kind(), p.Title(), p.RelPermalink(), p.Path(), p.SectionsPath(), p.Lang())
}
}