mirror of
https://github.com/restic/restic.git
synced 2024-12-27 18:28:30 +00:00
Remove timestamp from generated tests
This commit is contained in:
parent
9423767827
commit
99fab793c0
4 changed files with 4 additions and 11 deletions
|
@ -1,5 +1,4 @@
|
||||||
// DO NOT EDIT!
|
// DO NOT EDIT, AUTOMATICALLY GENERATED
|
||||||
// generated at 2016-23-01 17:41:09 +0100 CET
|
|
||||||
package local_test
|
package local_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// DO NOT EDIT!
|
// DO NOT EDIT, AUTOMATICALLY GENERATED
|
||||||
// generated at 2016-23-01 17:41:47 +0100 CET
|
|
||||||
package backend_test
|
package backend_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// DO NOT EDIT!
|
// DO NOT EDIT, AUTOMATICALLY GENERATED
|
||||||
// generated at 2016-23-01 17:41:27 +0100 CET
|
|
||||||
package test_test
|
package test_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -13,7 +13,6 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
|
||||||
"unicode"
|
"unicode"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
)
|
)
|
||||||
|
@ -22,12 +21,10 @@ var data struct {
|
||||||
Package string
|
Package string
|
||||||
PackagePrefix string
|
PackagePrefix string
|
||||||
Funcs []string
|
Funcs []string
|
||||||
Timestamp string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var testTemplate = `
|
var testTemplate = `
|
||||||
// DO NOT EDIT!
|
// DO NOT EDIT, AUTOMATICALLY GENERATED
|
||||||
// generated at {{ .Timestamp }}
|
|
||||||
package {{ .Package }}
|
package {{ .Package }}
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -125,7 +122,6 @@ func main() {
|
||||||
data.PackagePrefix = packageTestFunctionPrefix(pkg) + "Backend"
|
data.PackagePrefix = packageTestFunctionPrefix(pkg) + "Backend"
|
||||||
}
|
}
|
||||||
data.Funcs = findTestFunctions()
|
data.Funcs = findTestFunctions()
|
||||||
data.Timestamp = time.Now().Format("2006-02-01 15:04:05 -0700 MST")
|
|
||||||
generateOutput(f, data)
|
generateOutput(f, data)
|
||||||
|
|
||||||
errx(f.Close())
|
errx(f.Close())
|
||||||
|
|
Loading…
Reference in a new issue