internal: make timestampFunc private

This commit is contained in:
Joël Stemmer
2022-05-21 22:42:36 +01:00
parent b5d2695c26
commit dcbbd9fb22
2 changed files with 6 additions and 4 deletions

View File

@ -70,7 +70,7 @@ func testRun(inputFile, reportFile string, config Config, t *testing.T) {
}
config.Hostname = "hostname"
config.Properties = map[string]string{"go.version": "1.0"}
config.TimestampFunc = func() time.Time {
config.timestampFunc = func() time.Time {
return time.Date(2022, 1, 1, 0, 0, 0, 0, time.UTC)
}