Documentation ¶
Index ¶
- func ChangeWD(t *testing.T, newPath string) string
- func ChangeWDWithCallback(t *testing.T, newPath string) func()
- func CleanFileSystem()
- func CleanTestsHomeEnv()
- func CreateSecurityPolicy(t *testing.T, policyName string, rules ...xrayUtils.PolicyRule) (string, func())
- func CreateTestIgnoreRules(t *testing.T, description string, filters xrayUtils.IgnoreFilters) func()
- func CreateTestPolicyAndWatch(t *testing.T, policyName, watchName string, severity xrayUtils.Severity) (string, func())
- func CreateTestProjectEnvAndChdir(t *testing.T, projectPath string) (string, func())
- func CreateTestProjectInTempDir(t *testing.T, projectPath string) (string, func())
- func CreateTestProjectKeyWatch(t *testing.T, policyName, watchName, projectKey string, gitResources ...string) (string, func())
- func CreateTestSecurityPolicy(t *testing.T, policyName string, severity xrayUtils.Severity, failBuild bool, ...) (string, func())
- func CreateWatchForTests(t *testing.T, policyName, watchName string, gitResources ...string) (string, func())
- func GetTestsXrayVersion() (version.Version, error)
- func ReadSarifResults(t *testing.T, path string) *sarif.Report
- func ReadSimpleJsonResults(t *testing.T, path string) formats.SimpleJsonResults
- func ReadSummaryResults(t *testing.T, path string) formats.ResultsSummary
- func UnmarshalJson(t *testing.T, output string) formats.EnrichJson
- func UnmarshalXML(t *testing.T, output string) formats.Bom
- func ValidateXrayVersion(t *testing.T, minVersion string)
- func ValidateXscVersion(t *testing.T, xscVersion, minVersion string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeWDWithCallback ¶ added in v1.12.4
func CleanFileSystem ¶
func CleanFileSystem()
func CleanTestsHomeEnv ¶
func CleanTestsHomeEnv()
func CreateSecurityPolicy ¶ added in v1.14.0
func CreateTestIgnoreRules ¶ added in v1.14.0
func CreateTestIgnoreRules(t *testing.T, description string, filters xrayUtils.IgnoreFilters) func()
func CreateTestPolicyAndWatch ¶ added in v1.14.0
func CreateTestProjectEnvAndChdir ¶ added in v1.12.4
func CreateTestProjectInTempDir ¶ added in v1.12.4
func CreateTestProjectKeyWatch ¶ added in v1.14.0
func CreateTestSecurityPolicy ¶ added in v1.14.0
func CreateWatchForTests ¶ added in v1.14.0
func CreateWatchForTests(t *testing.T, policyName, watchName string, gitResources ...string) (string, func())
If gitResources is empty, the watch will be created with all builds.
func GetTestsXrayVersion ¶ added in v1.13.2
func ReadSarifResults ¶ added in v1.12.0
func ReadSimpleJsonResults ¶ added in v1.12.0
func ReadSimpleJsonResults(t *testing.T, path string) formats.SimpleJsonResults
func ReadSummaryResults ¶ added in v1.12.0
func ReadSummaryResults(t *testing.T, path string) formats.ResultsSummary
func UnmarshalJson ¶ added in v1.6.0
func UnmarshalJson(t *testing.T, output string) formats.EnrichJson
func ValidateXrayVersion ¶
func ValidateXscVersion ¶ added in v1.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.