okgotester

package
v1.54.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAssetCheckTest

func RunAssetCheckTest(t *testing.T,
	pluginProvider pluginapitester.PluginProvider,
	assetProvider pluginapitester.AssetProvider,
	checkName string,
	testBaseDir string,
	testCases []AssetTestCase,
)

RunAssetCheckTest tests the "check" operation using the provided asset. Resolves the okgo plugin using the provided locator and resolver, provides it with the asset and invokes the "check" command for the specified asset.

Types

type AssetTestCase

type AssetTestCase struct {
	Name        string
	Specs       []gofiles.GoFileSpec
	ConfigFiles map[string]string
	Wd          string
	WantError   bool
	WantOutput  string
}

Jump to

Keyboard shortcuts

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