Compare commits
2 commits
97de2fd06c
...
13ab5b1902
Author | SHA1 | Date | |
---|---|---|---|
|
13ab5b1902 | ||
|
873110f5ce |
2 changed files with 3 additions and 1 deletions
2
tree.go
2
tree.go
|
@ -295,7 +295,7 @@ func applyApp(app AppCallback, dir string, config Config) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
content, err = app(dir, content, info)
|
content, err = app(path.Dir(fullPath), content, info)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ func prepare(t *testing.T) Config {
|
||||||
"__a",
|
"__a",
|
||||||
make(map[string]func() string),
|
make(map[string]func() string),
|
||||||
[]string{"exclude_[0-9]+.bin"},
|
[]string{"exclude_[0-9]+.bin"},
|
||||||
|
map[string]AppCallback{},
|
||||||
)
|
)
|
||||||
|
|
||||||
err = PopulateTree("./testdata/sunny1", []string{}, config)
|
err = PopulateTree("./testdata/sunny1", []string{}, config)
|
||||||
|
@ -38,6 +39,7 @@ func TestFromNotExistingDirectory(t *testing.T) {
|
||||||
"__a",
|
"__a",
|
||||||
make(map[string]func() string),
|
make(map[string]func() string),
|
||||||
[]string{},
|
[]string{},
|
||||||
|
map[string]AppCallback{},
|
||||||
)
|
)
|
||||||
|
|
||||||
_, err := BuildTree("./testing/i_dont_exist", []string{}, config)
|
_, err := BuildTree("./testing/i_dont_exist", []string{}, config)
|
||||||
|
|
Loading…
Reference in a new issue