summaryrefslogtreecommitdiffstats
path: root/hugolib/site_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-05 20:56:38 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-05 20:56:38 +0100
commit023992abad74760cad50996b3c023ac50c534729 (patch)
tree4378be5a2d25c631c6ed7e93657c37185b8c6db4 /hugolib/site_test.go
parent27f8d8f9631a94c090dfdadcf3e38d2c5e389a4d (diff)
Unexport the target handlers
These are of no interest outside the package.
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r--hugolib/site_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go
index 66b58aa33..f7e92cd30 100644
--- a/hugolib/site_test.go
+++ b/hugolib/site_test.go
@@ -78,7 +78,7 @@ func TestReadPagesFromSourceWithEmptySource(t *testing.T) {
s := &Site{
Source: &source.InMemorySource{ByteSource: sources},
- Targets: targetList{Page: &target.PagePub{UglyURLs: true}},
+ targets: targetList{page: &target.PagePub{UglyURLs: true}},
}
var err error
@@ -383,7 +383,7 @@ THE END.`, refShortcode))},
s := &Site{
Source: &source.InMemorySource{ByteSource: sources},
- Targets: targetList{Page: &target.PagePub{UglyURLs: uglyURLs}},
+ targets: targetList{page: &target.PagePub{UglyURLs: uglyURLs}},
}
s.initializeSiteInfo()
@@ -450,7 +450,7 @@ func doTestShouldAlwaysHaveUglyURLs(t *testing.T, uglyURLs bool) {
s := &Site{
Source: &source.InMemorySource{ByteSource: sources},
- Targets: targetList{Page: &target.PagePub{UglyURLs: uglyURLs}},
+ targets: targetList{page: &target.PagePub{UglyURLs: uglyURLs}},
}
s.initializeSiteInfo()
@@ -545,7 +545,7 @@ func doTestSectionNaming(t *testing.T, canonify, uglify, pluralize bool) {
s := &Site{
Source: &source.InMemorySource{ByteSource: sources},
- Targets: targetList{Page: &target.PagePub{UglyURLs: uglify}},
+ targets: targetList{page: &target.PagePub{UglyURLs: uglify}},
}
s.initializeSiteInfo()
@@ -610,7 +610,7 @@ func TestSkipRender(t *testing.T) {
viper.Set("baseurl", "http://auth/bub")
s := &Site{
Source: &source.InMemorySource{ByteSource: sources},
- Targets: targetList{Page: &target.PagePub{UglyURLs: true}},
+ targets: targetList{page: &target.PagePub{UglyURLs: true}},
}
s.initializeSiteInfo()
@@ -666,7 +666,7 @@ func TestAbsURLify(t *testing.T) {
viper.Set("BaseURL", "http://auth/bub")
s := &Site{
Source: &source.InMemorySource{ByteSource: sources},
- Targets: targetList{Page: &target.PagePub{UglyURLs: true}},
+ targets: targetList{page: &target.PagePub{UglyURLs: true}},
}
t.Logf("Rendering with BaseURL %q and CanonifyURLs set %v", viper.GetString("baseURL"), canonify)
s.initializeSiteInfo()