summaryrefslogtreecommitdiffstats
path: root/hugolib/pages_capture_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/pages_capture_test.go')
-rw-r--r--hugolib/pages_capture_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/hugolib/pages_capture_test.go b/hugolib/pages_capture_test.go
index 4401ca6ed..0fdc73e76 100644
--- a/hugolib/pages_capture_test.go
+++ b/hugolib/pages_capture_test.go
@@ -30,13 +30,12 @@ import (
)
func TestPagesCapture(t *testing.T) {
-
cfg, hfs := newTestCfg()
fs := hfs.Source
c := qt.New(t)
- var writeFile = func(filename string) {
+ writeFile := func(filename string) {
c.Assert(afero.WriteFile(fs, filepath.FromSlash(filename), []byte(fmt.Sprintf("content-%s", filename)), 0755), qt.IsNil)
}
@@ -61,7 +60,6 @@ func TestPagesCapture(t *testing.T) {
c.Assert(coll.Collect(), qt.IsNil)
c.Assert(len(proc.items), qt.Equals, 4)
})
-
}
type testPagesCollectorProcessor struct {
@@ -73,6 +71,7 @@ func (proc *testPagesCollectorProcessor) Process(item interface{}) error {
proc.items = append(proc.items, item)
return nil
}
+
func (proc *testPagesCollectorProcessor) Start(ctx context.Context) context.Context {
return ctx
}