From aa637756e772f5ee9094b802df3be9945c8466c4 Mon Sep 17 00:00:00 2001 From: vovapi Date: Tue, 10 Dec 2019 13:33:26 +0300 Subject: [PATCH] testing: fixes after the review --- src/testing/benchmark.go | 6 +++--- src/testing/example.go | 2 +- src/testing/testing.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/testing/benchmark.go b/src/testing/benchmark.go index 28b407ee98..04127727c1 100644 --- a/src/testing/benchmark.go +++ b/src/testing/benchmark.go @@ -70,7 +70,7 @@ var benchmarkLock sync.Mutex var memStats runtime.MemStats // InternalBenchmark is an internal type but exported because it is cross-package; -// part of the implementation of the "go test" command. +// it is part of the implementation of the "go test" command. type InternalBenchmark struct { Name string F func(b *B) @@ -342,7 +342,7 @@ func (b *B) ReportMetric(n float64, unit string) { b.extra[unit] = n } -// BenchmarkResult is the results of a benchmark run. +// BenchmarkResult contains the results of a benchmark run. type BenchmarkResult struct { N int // The number of iterations. T time.Duration // The total time taken. @@ -489,7 +489,7 @@ type benchContext struct { } // RunBenchmarks is an internal function but exported because it is cross-package; -// part of the implementation of the "go test" command. +// it is part of the implementation of the "go test" command. func RunBenchmarks(matchString func(pat, str string) (bool, error), benchmarks []InternalBenchmark) { runBenchmarks("", matchString, benchmarks) } diff --git a/src/testing/example.go b/src/testing/example.go index cd78408e69..adc91d5faf 100644 --- a/src/testing/example.go +++ b/src/testing/example.go @@ -20,7 +20,7 @@ type InternalExample struct { } // RunExamples is an internal function but exported because it is cross-package; -// part of the implementation of the "go test" command. +// it is part of the implementation of the "go test" command. func RunExamples(matchString func(pat, str string) (bool, error), examples []InternalExample) (ok bool) { _, ok = runExamples(matchString, examples) return ok diff --git a/src/testing/testing.go b/src/testing/testing.go index 7f1047da56..15ff1dd81d 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -864,7 +864,7 @@ func (t *T) Parallel() { } // InternalTest is an internal type but exported because it is cross-package; -// part of the implementation of the "go test" command. +// it is part of the implementation of the "go test" command. type InternalTest struct { Name string F func(*T) @@ -1215,7 +1215,7 @@ func listTests(matchString func(pat, str string) (bool, error), tests []Internal } // RunTests is an internal function but exported because it is cross-package; -// part of the implementation of the "go test" command. +// it is part of the implementation of the "go test" command. func RunTests(matchString func(pat, str string) (bool, error), tests []InternalTest) (ok bool) { ran, ok := runTests(matchString, tests) if !ran && !haveExamples {