2021-05-10 09:08:04 +01:00
|
|
|
package junit
|
|
|
|
|
2021-05-31 09:44:12 +01:00
|
|
|
// NewTestsuite instantiate a Testsuite
|
2021-05-10 09:08:04 +01:00
|
|
|
func NewTestsuite(name string) *Testsuite {
|
|
|
|
return &Testsuite{
|
|
|
|
Name: name,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-31 09:44:12 +01:00
|
|
|
// NewFailure instantiate a Failure
|
2021-05-10 09:08:04 +01:00
|
|
|
func NewFailure(message string, text string) *Failure {
|
|
|
|
return &Failure{
|
|
|
|
Message: message,
|
|
|
|
Text: text,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-31 09:44:12 +01:00
|
|
|
// NewTestcase instantiate a Testcase
|
2021-05-10 09:08:04 +01:00
|
|
|
func NewTestcase(name string, failure *Failure) *Testcase {
|
|
|
|
return &Testcase{
|
|
|
|
Name: name,
|
|
|
|
Failure: failure,
|
|
|
|
}
|
|
|
|
}
|