Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JUnitReport ¶
type JUnitReport struct { XMLName xml.Name `xml:"testsuites"` TestSuites []TestSuite `xml:"testsuite"` }
func EncodeComplianceReport ¶
func EncodeComplianceReport(report parser.ScanReport) JUnitReport
EncodeComplianceReport accepts a single ScanReport and returns a JUnitReport for compliances
func EncodeScanReport ¶
func EncodeScanReport(report parser.ScanReport) JUnitReport
EncodeScanReport accepts a single ScanReport and returns a JUnitReport
func EncodeVulnerabilityReport ¶
func EncodeVulnerabilityReport(report parser.ScanReport) JUnitReport
EncodeVulnerabilityReport accepts a single ScanReport and returns a JUnitReport for vulnerabilities
type TestSuite ¶
type TestSuite struct { XMLName xml.Name `xml:"testsuite"` Id int `xml:"id,attr"` Name string `xml:"name,attr"` Errors int `xml:"errors,attr"` Failures int `xml:"failures,attr"` Skipped int `xml:"skipped,attr"` Tests int `xml:"tests,attr"` Hostname string `xml:"hostname,attr"` Time float64 `xml:"time,attr"` Timestamp string `xml:"timestamp,attr"` Package string `xml:"package,attr"` Properties []Property `xml:"properties>property"` TestCases []TestCase `xml:"testcase"` SystemOut string `xml:"system-out"` SystemErr string `xml:"system-err"` }
Click to show internal directories.
Click to hide internal directories.