mirror of
https://github.com/securego/gosec.git
synced 2024-11-06 03:55:50 +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,
|
|
}
|
|
}
|