Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteReport ¶
WriteReport write a report in JUnit format to the output writer
Types ¶
type Failure ¶
type Failure struct { XMLName xml.Name `xml:"failure"` Message string `xml:"message,attr"` Text string `xml:",innerxml"` }
Failure defines a JUnit failure
func NewFailure ¶
NewFailure instantiate a Failure
type Report ¶
type Report struct { XMLName xml.Name `xml:"testsuites"` Testsuites []*Testsuite `xml:"testsuite"` }
Report defines a JUnit XML report
func GenerateReport ¶
func GenerateReport(data *gosec.ReportInfo) Report
GenerateReport Convert a gosec report to a JUnit Report
type Testcase ¶
type Testcase struct { XMLName xml.Name `xml:"testcase"` Name string `xml:"name,attr"` Failure *Failure `xml:"failure"` }
Testcase defines a JUnit testcase
func NewTestcase ¶
NewTestcase instantiate a Testcase
Click to show internal directories.
Click to hide internal directories.