diff options
| author | Am Laher <am@movio.co> | 2018-09-23 20:32:08 +1200 |
|---|---|---|
| committer | Am Laher <am@movio.co> | 2018-09-23 20:32:08 +1200 |
| commit | e5346d11555d064c3b7bdf2d624354a2c5d4633c (patch) | |
| tree | b78e4676f9ab2f5b4deb61463184e909caa75ab0 /template_test.go | |
| parent | 598147cf51b12d225e61fd58b1719a7937ff5d8b (diff) | |
removes globbing support and adds templateAliases (aliased using --template alias=file.t)
Diffstat (limited to 'template_test.go')
| -rw-r--r-- | template_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/template_test.go b/template_test.go index 9947f6d8..f0b79f97 100644 --- a/template_test.go +++ b/template_test.go @@ -95,7 +95,7 @@ func TestWalkDir(t *testing.T) { defer func() { fs = origfs }() fs = afero.NewMemMapFs() - _, err := walkDir("/indir", "/outdir", nil, 0, false, []string{}) + _, err := walkDir("/indir", "/outdir", nil, 0, false, templateAliases{}) assert.Error(t, err) _ = fs.MkdirAll("/indir/one", 0777) @@ -104,7 +104,7 @@ func TestWalkDir(t *testing.T) { afero.WriteFile(fs, "/indir/one/bar", []byte("bar"), 0644) afero.WriteFile(fs, "/indir/two/baz", []byte("baz"), 0644) - templates, err := walkDir("/indir", "/outdir", []string{"/*/two"}, 0, false, []string{}) + templates, err := walkDir("/indir", "/outdir", []string{"/*/two"}, 0, false, templateAliases{}) assert.NoError(t, err) assert.Equal(t, 2, len(templates)) |
