testing: rename type Test to InternalTest

type Benchmark has been renamed to InternalBenchmark

R=rsc
CC=golang-dev
https://golang.org/cl/2942042
This commit is contained in:
Peter Mundy 2010-11-05 23:05:53 -04:00 committed by Russ Cox
parent 9e1ee8ff4f
commit 3b44fbe869
2 changed files with 4 additions and 4 deletions

View file

@ -123,19 +123,19 @@ func (t *T) Fatalf(format string, args ...interface{}) {
// An internal type but exported because it is cross-package; part of the implementation
// of gotest.
type Test struct {
type InternalTest struct {
Name string
F func(*T)
}
func tRunner(t *T, test *Test) {
func tRunner(t *T, test *InternalTest) {
test.F(t)
t.ch <- t
}
// An internal function but exported because it is cross-package; part of the implementation
// of gotest.
func Main(matchString func(pat, str string) (bool, os.Error), tests []Test) {
func Main(matchString func(pat, str string) (bool, os.Error), tests []InternalTest) {
flag.Parse()
ok := true
if len(tests) == 0 {