From 99fab793c076ecc580c5807a05dd3c67a38e19f4 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 23 Jan 2016 17:43:49 +0100 Subject: [PATCH] Remove timestamp from generated tests --- backend/local/backend_test.go | 3 +-- backend/mem_backend_test.go | 3 +-- backend/test/backend_test.go | 3 +-- backend/test/generate_backend_tests.go | 6 +----- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/backend/local/backend_test.go b/backend/local/backend_test.go index 8f521bced..14e865df5 100644 --- a/backend/local/backend_test.go +++ b/backend/local/backend_test.go @@ -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 ( diff --git a/backend/mem_backend_test.go b/backend/mem_backend_test.go index 83e869990..0e04e97f2 100644 --- a/backend/mem_backend_test.go +++ b/backend/mem_backend_test.go @@ -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 ( diff --git a/backend/test/backend_test.go b/backend/test/backend_test.go index 4c11a5ac3..3af250808 100644 --- a/backend/test/backend_test.go +++ b/backend/test/backend_test.go @@ -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 ( diff --git a/backend/test/generate_backend_tests.go b/backend/test/generate_backend_tests.go index 2286ba2dd..a08250129 100644 --- a/backend/test/generate_backend_tests.go +++ b/backend/test/generate_backend_tests.go @@ -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())