please send CL requests using hg mail so that golang-dev gets cc'ed. thanks. On Fri, ...
13 years, 5 months ago
(2010-11-16 19:27:36 UTC)
#5
please send CL requests using hg mail so that
golang-dev gets cc'ed.
thanks.
On Fri, Nov 5, 2010 at 16:41, <go.peter.90@gmail.com> wrote:
> Reviewers: rsc,
>
> Message:
> "Consistency is the foundation of virtue." - Francis Bacon
>
> Description:
> testing: rename type Test to InternalTest
>
> type Benchmark has been renamed to InternalBenchmark
>
> Please review this at http://codereview.appspot.com/2942042/
>
> Affected files:
> M src/cmd/gotest/gotest
> M src/pkg/testing/testing.go
>
>
> Index: src/cmd/gotest/gotest
> ===================================================================
> --- a/src/cmd/gotest/gotest
> +++ b/src/cmd/gotest/gotest
> @@ -150,7 +150,7 @@
> echo 'import __regexp__ "regexp"' # rename in case tested package is
> called regexp
> # test array
> echo
> - echo 'var tests = []testing.Test{'
> + echo 'var tests = []testing.InternalTest{'
> for i in $tests
> do
> echo ' {"'$i'", '$i'},'
> Index: src/pkg/testing/testing.go
> ===================================================================
> --- a/src/pkg/testing/testing.go
> +++ b/src/pkg/testing/testing.go
> @@ -123,19 +123,19 @@
>
> // 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 {
>
>
>
Issue 2942042: code review 2942042: testing: rename type Test to InternalTest
Created 13 years, 5 months ago by peterGo
Modified 13 years, 5 months ago
Reviewers:
Base URL:
Comments: 0