mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 21:05:10 +00:00
Remove timestamp from generated tests
This commit is contained in:
parent
9423767827
commit
99fab793c0
@ -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 (
|
||||
|
@ -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 (
|
||||
|
@ -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 (
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user