1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-27 02:08:37 +00:00

Remove timestamp from generated tests

This commit is contained in:
Alexander Neumann 2016-01-23 17:43:49 +01:00
parent 9423767827
commit 99fab793c0
4 changed files with 4 additions and 11 deletions

View file

@ -1,5 +1,4 @@
// DO NOT EDIT!
// generated at 2016-23-01 17:41:09 +0100 CET
// DO NOT EDIT, AUTOMATICALLY GENERATED
package local_test
import (

View file

@ -1,5 +1,4 @@
// DO NOT EDIT!
// generated at 2016-23-01 17:41:47 +0100 CET
// DO NOT EDIT, AUTOMATICALLY GENERATED
package backend_test
import (

View file

@ -1,5 +1,4 @@
// DO NOT EDIT!
// generated at 2016-23-01 17:41:27 +0100 CET
// DO NOT EDIT, AUTOMATICALLY GENERATED
package test_test
import (

View file

@ -13,7 +13,6 @@ import (
"path/filepath"
"regexp"
"text/template"
"time"
"unicode"
"unicode/utf8"
)
@ -22,12 +21,10 @@ var data struct {
Package string
PackagePrefix string
Funcs []string
Timestamp string
}
var testTemplate = `
// DO NOT EDIT!
// generated at {{ .Timestamp }}
// DO NOT EDIT, AUTOMATICALLY GENERATED
package {{ .Package }}
import (
@ -125,7 +122,6 @@ func main() {
data.PackagePrefix = packageTestFunctionPrefix(pkg) + "Backend"
}
data.Funcs = findTestFunctions()
data.Timestamp = time.Now().Format("2006-02-01 15:04:05 -0700 MST")
generateOutput(f, data)
errx(f.Close())