Skip to content
Browse files

templates disallowed =, must be := now

  • Loading branch information...
1 parent 4d0489d commit bbaa75161f822f9dd03bfa7e1293ec060e4db6ea @skelterjohn committed Mar 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 gb/gentest.go
View
4 gb/gentest.go
@@ -38,11 +38,11 @@ import "testing"
import __regexp__ "regexp"
var tests = []testing.InternalTest{
-{{range .TestPkgs}}{{if $PkgName=.PkgName}}{{if $PkgAlias=.PkgAlias}}{{range .TestFuncs}} {"{{$PkgName}}.{{.}}", {{$PkgAlias}}.{{.}}},{{end}}{{end}}{{end}}{{end}}
+{{range .TestPkgs}}{{if $PkgName:=.PkgName}}{{if $PkgAlias:=.PkgAlias}}{{range .TestFuncs}} {"{{$PkgName}}.{{.}}", {{$PkgAlias}}.{{.}}},{{end}}{{end}}{{end}}{{end}}
}
var benchmarks = []testing.InternalBenchmark{
-{{range .TestPkgs}}{{if $PkgName=.PkgName}}{{if $PkgAlias=.PkgAlias}}{{range .TestBenchmarks}} {"{{$PkgName}}.{{.}}", {{$PkgAlias}}.{{.}}},{{end}}{{end}}{{end}}{{end}}
+{{range .TestPkgs}}{{if $PkgName:=.PkgName}}{{if $PkgAlias:=.PkgAlias}}{{range .TestBenchmarks}} {"{{$PkgName}}.{{.}}", {{$PkgAlias}}.{{.}}},{{end}}{{end}}{{end}}{{end}}
}
var matchPat string

0 comments on commit bbaa751

Please sign in to comment.
Something went wrong with that request. Please try again.