mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 20:45:53 +00:00
24 lines
451 B
Go
24 lines
451 B
Go
package junit
|
|
|
|
// NewTestsuite instantiate a Testsuite
|
|
func NewTestsuite(name string) *Testsuite {
|
|
return &Testsuite{
|
|
Name: name,
|
|
}
|
|
}
|
|
|
|
// NewFailure instantiate a Failure
|
|
func NewFailure(message string, text string) *Failure {
|
|
return &Failure{
|
|
Message: message,
|
|
Text: text,
|
|
}
|
|
}
|
|
|
|
// NewTestcase instantiate a Testcase
|
|
func NewTestcase(name string, failure *Failure) *Testcase {
|
|
return &Testcase{
|
|
Name: name,
|
|
Failure: failure,
|
|
}
|
|
}
|