mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-05-20 19:04:29 -05:00

Many of the testdata files were generated a long time ago with very old versions of Go. The Go test output has changed over time, and these test inputs no longer reflect the current state. The intention is to fully support the test output of the most recent Go versions. This commit also includes the source used to generate the test output, so the output can be more easily updated in the future.
15 lines
159 B
Go
15 lines
159 B
Go
package pass
|
|
|
|
import "fmt"
|
|
|
|
func message() string {
|
|
return "line"
|
|
}
|
|
|
|
func unused(n int) string {
|
|
if n < 0 {
|
|
return "0"
|
|
}
|
|
return fmt.Sprintf("%d\n", n)
|
|
}
|