projectversiontester

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAssetProjectVersionTest

func RunAssetProjectVersionTest(t *testing.T,
	pluginProvider pluginapitester.PluginProvider,
	assetProvider pluginapitester.AssetProvider,
	testCases []TestCase,
)

RunAssetProjectVersionTest tests the "project-version" operation using the provided asset. Uses the provided plugin provider and asset provider to resolve the plugin and asset and invokes the "project-version" command.

Types

type TestCase

type TestCase struct {
	Name        string
	ConfigFiles map[string]string
	Setup       func(testDir string)
	WantError   bool
	WantOutput  func(projectDir string) *regexp.Regexp
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL