diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2024-05-29 20:36:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-29 20:36:24 -0400 |
| commit | 95a06b9fc94c44af51588379c4e443e986b7e4d5 (patch) | |
| tree | c17f08a12c020ef45302800d778d02ee18bfcc24 /gomplate_test.go | |
| parent | 362f058f0c93900c7bd7462aac200597e70ebfb7 (diff) | |
chore!: Replacing the data.Data type with a datasource registry (#2083)
* chore!: Replacing the data.Data type with a datasource registry
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
* chore(lint): fix lint warning
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
---------
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'gomplate_test.go')
| -rw-r--r-- | gomplate_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gomplate_test.go b/gomplate_test.go index 62ae4525..e9b885cf 100644 --- a/gomplate_test.go +++ b/gomplate_test.go @@ -10,8 +10,8 @@ import ( "github.com/hairyhenderson/gomplate/v4/aws" "github.com/hairyhenderson/gomplate/v4/conv" - "github.com/hairyhenderson/gomplate/v4/data" "github.com/hairyhenderson/gomplate/v4/env" + "github.com/hairyhenderson/gomplate/v4/internal/datafs" "github.com/hairyhenderson/gomplate/v4/internal/parsers" "github.com/stretchr/testify/assert" @@ -179,9 +179,9 @@ func TestSimpleNamer(t *testing.T) { func TestMappingNamer(t *testing.T) { ctx := context.Background() + reg := datafs.NewRegistry() tr := &Renderer{ - //nolint:staticcheck - data: &data.Data{}, + sr: datafs.NewSourceReader(reg), funcs: map[string]interface{}{ "foo": func() string { return "foo" }, }, |
