diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2022-02-21 22:41:32 -0500 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2022-02-27 20:16:18 -0500 |
| commit | 610a8b5a408cb3d08f4e4e2d6cf9cbe7194490d5 (patch) | |
| tree | 5a79319666ca7d71ee6744fcfd59dec07b0c3347 /plugins_test.go | |
| parent | 2aa13dd3cf08ee24eb174edb78ee4d13415005b5 (diff) | |
Support piping input to plugin
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'plugins_test.go')
| -rw-r--r-- | plugins_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins_test.go b/plugins_test.go index 8590ed34..1e00a908 100644 --- a/plugins_test.go +++ b/plugins_test.go @@ -18,13 +18,13 @@ func TestBindPlugins(t *testing.T) { ctx := context.Background() fm := template.FuncMap{} cfg := &config.Config{ - Plugins: map[string]string{}, + Plugins: map[string]config.PluginConfig{}, } err := bindPlugins(ctx, cfg, fm) assert.NilError(t, err) assert.DeepEqual(t, template.FuncMap{}, fm) - cfg.Plugins = map[string]string{"foo": "bar"} + cfg.Plugins = map[string]config.PluginConfig{"foo": {Cmd: "bar"}} err = bindPlugins(ctx, cfg, fm) assert.NilError(t, err) assert.Check(t, cmp.Contains(fm, "foo")) |
