feat: include func support (#1187)

* feat: include func support

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2023-12-04 21:51:01 +08:00
committed by GitHub
parent 06504477f6
commit 7d6ed97333
20 changed files with 380 additions and 53 deletions
+7 -1
View File
@@ -307,7 +307,13 @@ func TestSetValueAtPath_TwoComponents(t *testing.T) {
}
func TestTpl(t *testing.T) {
ctx := &Context{basePath: "."}
ctx := &Context{
basePath: ".",
fs: &filesystem.FileSystem{
Glob: func(s string) ([]string, error) {
return nil, nil
}},
}
tests := []struct {
name string
input string