testutils

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthorizedUserMockId = int64(1234)
	SbomTask             = "CycloneDX/gh-dotnet-generate-sbom"
	ArgonScannerAction   = "argonsecurity/scanner-action"
	TrivyScannerAction   = "aquasecurity/trivy-action"
)

Functions

func RunCheckTests

func RunCheckTests(t *testing.T, testedAction checkmodels.CheckAction, tests []CheckTest, checksMetadata checkmodels.CheckMetadataMap)

Types

type CheckTest

type CheckTest struct {
	Name                    string
	Data                    *checkmodels.CheckData
	Expected                []*checkmodels.CheckRunResult
	ExpectedResultsForRules []*checkmodels.CheckRunResult
	ExpectedE               error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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