Versions in this module Expand all Collapse all v0 v0.0.12 Feb 8, 2021 Changes in this version + const TestEnvVar + func Test(t TestT, c TestCase) + func TestDatasource(t *testing.T, testCase *DatasourceTestCase) + func TestPlugin(t *testing.T, testCase *PluginTestCase) + type DatasourceTestCase struct + Check func(*exec.Cmd, string) error + Name string + Setup func() error + Teardown TestTeardownFunc + Template string + Type string + type PluginTestCase struct + Check func(*exec.Cmd, string) error + Name string + Setup func() error + Teardown TestTeardownFunc + Template string + Type string + type TestBuilderSet struct + StartFn func(name string) (packersdk.Builder, error) + func (tbs TestBuilderSet) Start(name string) (packersdk.Builder, error) + type TestCase struct + Builder packersdk.Builder + Check TestCheckFunc + PreCheck func() + ProvisionerStore packersdk.MapOfProvisioner + SkipArtifactTeardown bool + Teardown TestTeardownFunc + Template string + type TestCheckFunc func([]packersdk.Artifact) error + type TestT interface + Error func(args ...interface{}) + Fatal func(args ...interface{}) + Skip func(args ...interface{}) + type TestTeardownFunc func() error