aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/go/doc/doc_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/go/doc/doc_test.go')
-rw-r--r--libgo/go/go/doc/doc_test.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/libgo/go/go/doc/doc_test.go b/libgo/go/go/doc/doc_test.go
index 82e6310..ad8ba53 100644
--- a/libgo/go/go/doc/doc_test.go
+++ b/libgo/go/go/doc/doc_test.go
@@ -25,7 +25,7 @@ var files = flag.String("files", "", "consider only Go test files matching this
const dataDir = "testdata"
-var templateTxt *template.Template
+var templateTxt = readTemplate("template.txt")
func readTemplate(filename string) *template.Template {
t := template.New(filename)
@@ -96,9 +96,6 @@ func test(t *testing.T, mode Mode) {
if err != nil {
t.Fatal(err)
}
- if templateTxt == nil {
- templateTxt = readTemplate("template.txt")
- }
// test packages
for _, pkg := range pkgs {