summaryrefslogtreecommitdiffstats
path: root/hugolib/pageGroup_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-04-07 18:44:58 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-04-07 18:44:58 +0200
commit819271cb78df6853b4c128c3899d57e3812c3078 (patch)
tree778d3897c30fe13748d901d908d232bd4d60c651 /hugolib/pageGroup_test.go
parent3950b1375c0be846c88d015d7ae20e45d51f97d2 (diff)
Re-export the methods used in page group tests
Diffstat (limited to 'hugolib/pageGroup_test.go')
-rw-r--r--hugolib/pageGroup_test.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/hugolib/pageGroup_test.go b/hugolib/pageGroup_test.go
index 18bd92df4..c9b3cfaa8 100644
--- a/hugolib/pageGroup_test.go
+++ b/hugolib/pageGroup_test.go
@@ -139,15 +139,15 @@ func TestGroupByCalledWithUnavailableKey(t *testing.T) {
}
}
-func (page *Page) dummyPageMethodWithArgForTest(s string) string {
+func (page *Page) DummyPageMethodWithArgForTest(s string) string {
return s
}
-func (page *Page) dummyPageMethodReturnThreeValueForTest() (string, string, string) {
+func (page *Page) DummyPageMethodReturnThreeValueForTest() (string, string, string) {
return "foo", "bar", "baz"
}
-func (page *Page) dummyPageMethodReturnErrorOnlyForTest() error {
+func (page *Page) DummyPageMethodReturnErrorOnlyForTest() error {
return errors.New("something error occured")
}
@@ -159,22 +159,22 @@ func TestGroupByCalledWithInvalidMethod(t *testing.T) {
var err error
pages := preparePageGroupTestPages(t)
- _, err = pages.GroupBy("dummyPageMethodWithArgForTest")
+ _, err = pages.GroupBy("DummyPageMethodWithArgForTest")
if err == nil {
t.Errorf("GroupByParam should return an error but didn't")
}
- _, err = pages.GroupBy("dummyPageMethodReturnThreeValueForTest")
+ _, err = pages.GroupBy("DummyPageMethodReturnThreeValueForTest")
if err == nil {
t.Errorf("GroupByParam should return an error but didn't")
}
- _, err = pages.GroupBy("dummyPageMethodReturnErrorOnlyForTest")
+ _, err = pages.GroupBy("DummyPageMethodReturnErrorOnlyForTest")
if err == nil {
t.Errorf("GroupByParam should return an error but didn't")
}
- _, err = pages.GroupBy("dummyPageMethodReturnTwoValueForTest")
+ _, err = pages.GroupBy("DummyPageMethodReturnTwoValueForTest")
if err == nil {
t.Errorf("GroupByParam should return an error but didn't")
}