Documentation ¶
Index ¶
- func ChangeWD(t *testing.T, newPath string) string
- func ChangeWDWithCallback(t *testing.T, newPath string) func()
- func CleanFileSystem()
- func CleanTestsHomeEnv()
- func CreateTestProjectEnvAndChdir(t *testing.T, projectPath string) (string, func())
- func CreateTestProjectInTempDir(t *testing.T, projectPath string) (string, func())
- func CreateTestWatch(t *testing.T, policyName string, watchName, severity xrayUtils.Severity) (string, func())
- func GetTestsXrayVersion() (version.Version, error)
- func ReadCmdScanResults(t *testing.T, path string) *results.SecurityCommandResults
- 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, 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 CreateTestProjectEnvAndChdir ¶ added in v1.12.4
func CreateTestProjectInTempDir ¶ added in v1.12.4
func CreateTestWatch ¶ added in v1.3.0
func GetTestsXrayVersion ¶ added in v1.13.2
func ReadCmdScanResults ¶ added in v1.12.0
func ReadCmdScanResults(t *testing.T, path string) *results.SecurityCommandResults
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.