Documentation
¶
Index ¶
- func CheckLine(t *testing.T, expec, want string, line int)
- func DevPathAdapter(path string) string
- func FileCheck(t *testing.T, actualPayloadName, expectPayloadName, location string)
- func GetScannerLocalBin() string
- func JSONSchemaCompare(t *testing.T, schema, report gojsonschema.JSONLoader)
- func JSONSchemaValidationFromFile(t *testing.T, file, schema string)
- func PrepareExpected(path, folder string) ([]string, error)
- func ReadFixture(testName, folder string) (string, error)
- type CmdOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DevPathAdapter ¶
DevPathAdapter adapts the path to enable local scanner execution
func GetScannerLocalBin ¶
func GetScannerLocalBin() string
GetScannerLocalBin returns the scanner local bin path
func JSONSchemaCompare ¶
func JSONSchemaCompare(t *testing.T, schema, report gojsonschema.JSONLoader)
JSONSchemaCompare executes schema assertions to validate the content of a JSON file
func JSONSchemaValidationFromFile ¶
JSONSchemaValidationFromFile loads a json file and validates it against a schema
func PrepareExpected ¶
PrepareExpected prepares the files for validation tests
func ReadFixture ¶
ReadFixture reads a file based on a provided path and filename
Types ¶
Click to show internal directories.
Click to hide internal directories.