vaguerent/internal/plugin/testing_plugin.go
2022-04-25 12:26:40 -05:00

14 lines
337 B
Go

package plugin
import (
"github.com/mitchellh/go-testing-interface"
)
// TestPlugin returns a fully in-memory and side-effect free Plugin that
// can be used for testing. Additional options can be given to provide your own
// factories, configuration, etc.
func TestPlugin(t testing.T) *Plugin {
plugin := &Plugin{}
return plugin
}