diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2024-06-06 08:51:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-06 12:51:45 +0000 |
| commit | 7887f1b8d984d08790bf6219c9f6683bd3548e78 (patch) | |
| tree | c53974033ff0914a573d8b9dca315e4e4af4e774 /config_test.go | |
| parent | 29bd9ed54a89918e6225d382b4306e1f68c74f3f (diff) | |
chore(api)!: Removing deprecated RunTemplates function and Config type (#2095)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'config_test.go')
| -rw-r--r-- | config_test.go | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/config_test.go b/config_test.go deleted file mode 100644 index 0ddefc3e..00000000 --- a/config_test.go +++ /dev/null @@ -1,48 +0,0 @@ -package gomplate - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestConfigString(t *testing.T) { - c := &Config{} - - expected := `input: - -output: -` - assert.Equal(t, expected, c.String()) - - c = &Config{ - LDelim: "L", - RDelim: "R", - Input: "foo", - OutputFiles: []string{"-"}, - Templates: []string{"foo=foo.t", "bar=bar.t"}, - } - expected = `input: <arg> -output: - -left_delim: L -right_delim: R -templates: foo=foo.t, bar=bar.t` - - assert.Equal(t, expected, c.String()) - - c = &Config{ - InputDir: "in/", - OutputDir: "out/", - } - expected = `input: in/ -output: out/` - - assert.Equal(t, expected, c.String()) - - c = &Config{ - InputDir: "in/", - OutputMap: "{{ .in }}", - } - expected = `input: in/ -output: {{ .in }}` - - assert.Equal(t, expected, c.String()) -} |
