Revert "internal: make timestampFunc private"

This reverts commit dcbbd9fb22 and fixes
testdata/generate-golden-reports.go.
This commit is contained in:
Joël Stemmer
2022-05-22 20:41:00 +01:00
parent 84074a188c
commit 395886ab94
2 changed files with 3 additions and 5 deletions

View File

@ -26,12 +26,10 @@ type Config struct {
SkipXMLHeader bool
SubtestMode gotest.SubtestMode
Properties map[string]string
TimestampFunc func() time.Time
// For debugging
PrintEvents bool
// For testing
timestampFunc func() time.Time
}
// Run runs the go-junit-report command and returns the generated report.
@ -98,6 +96,6 @@ func (c Config) gotestOptions() []gotest.Option {
return []gotest.Option{
gotest.PackageName(c.PackageName),
gotest.SetSubtestMode(c.SubtestMode),
gotest.TimestampFunc(c.timestampFunc),
gotest.TimestampFunc(c.TimestampFunc),
}
}