diff options
author | Russ Cox <rsc@golang.org> | 2009-01-16 15:28:33 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-01-16 15:28:33 -0800 |
commit | c0941f8e06b4fbc76a75df93fe5a98e4cc324167 (patch) | |
tree | b33de0018330531a8cbb3369ca9390ffde08ed91 | |
parent | feebb55ed4292ea0ed72281b37d54d32ca05858f (diff) | |
download | golang-c0941f8e06b4fbc76a75df93fe5a98e4cc324167.tar.gz |
casify struct fields in entire tree.
TBR=r
OCL=22997
CL=22997
-rw-r--r-- | src/lib/testing.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/testing.go b/src/lib/testing.go index 6199aa6ee..01924ef44 100644 --- a/src/lib/testing.go +++ b/src/lib/testing.go @@ -70,12 +70,12 @@ func (t *T) Fatalf(format string, args ...) { } export type Test struct { - name string; - f *(*T); + Name string; + F *(*T); } func tRunner(t *T, test *Test) { - test.f(t); + test.F(t); t.ch <- t; } @@ -87,18 +87,18 @@ export func Main(tests []Test) { } for i := 0; i < len(tests); i++ { if *chatty { - println("=== RUN ", tests[i].name); + println("=== RUN ", tests[i].Name); } t := new(T); t.ch = make(chan *T); go tRunner(t, &tests[i]); <-t.ch; if t.failed { - println("--- FAIL:", tests[i].name); + println("--- FAIL:", tests[i].Name); print(t.errors); ok = false; } else if *chatty { - println("--- PASS:", tests[i].name); + println("--- PASS:", tests[i].Name); print(t.errors); } } |