"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hugofs/glob_test.go" between
hugo-0.85.0.tar.gz and hugo-0.86.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

glob_test.go  (hugo-0.85.0):glob_test.go  (hugo-0.86.0)
skipping to change at line 38 skipping to change at line 38
fs := NewBaseFileDecorator(afero.NewMemMapFs()) fs := NewBaseFileDecorator(afero.NewMemMapFs())
create := func(filename string) { create := func(filename string) {
err := afero.WriteFile(fs, filepath.FromSlash(filename), []byte(" content "+filename), 0777) err := afero.WriteFile(fs, filepath.FromSlash(filename), []byte(" content "+filename), 0777)
c.Assert(err, qt.IsNil) c.Assert(err, qt.IsNil)
} }
collect := func(pattern string) []string { collect := func(pattern string) []string {
var paths []string var paths []string
h := func(fi FileMetaInfo) (bool, error) { h := func(fi FileMetaInfo) (bool, error) {
paths = append(paths, fi.Meta().Path()) paths = append(paths, fi.Meta().Path)
return false, nil return false, nil
} }
err := Glob(fs, pattern, h) err := Glob(fs, pattern, h)
c.Assert(err, qt.IsNil) c.Assert(err, qt.IsNil)
return paths return paths
} }
create("root.json") create("root.json")
create("jsonfiles/d1.json") create("jsonfiles/d1.json")
create("jsonfiles/d2.json") create("jsonfiles/d2.json")
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)