mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
@@ -81,14 +81,12 @@ func TestWalkRootMappingFs(t *testing.T) {
|
||||
}
|
||||
|
||||
c.Run("Basic", func(c *qt.C) {
|
||||
|
||||
bfs := prepare(c)
|
||||
|
||||
names, err := collectFilenames(bfs, "", "")
|
||||
|
||||
c.Assert(err, qt.IsNil)
|
||||
c.Assert(names, qt.DeepEquals, []string{"a/test.txt", "b/test.txt", "c/test.txt"})
|
||||
|
||||
})
|
||||
|
||||
c.Run("Para", func(c *qt.C) {
|
||||
@@ -112,12 +110,10 @@ func TestWalkRootMappingFs(t *testing.T) {
|
||||
return errors.New("fail")
|
||||
}
|
||||
return nil
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
c.Assert(r.Wait(), qt.IsNil)
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
@@ -169,7 +165,7 @@ func TestWalkSymbolicLink(t *testing.T) {
|
||||
names, err := collectFilenames(fs, workDir, workDir)
|
||||
c.Assert(err, qt.IsNil)
|
||||
|
||||
c.Assert(names, qt.DeepEquals, []string{"blog/real/sub/a.txt", "docs/b.txt"})
|
||||
c.Assert(names, qt.DeepEquals, []string{"blog/real/sub/a.txt", "blog/symlinked/sub/a.txt", "docs/b.txt"})
|
||||
})
|
||||
|
||||
t.Run("BasePath Fs", func(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user