Skip to content

Commit aa63775

Browse files
committed
testing: fixes after the review
1 parent b9cdaa6 commit aa63775

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/testing/benchmark.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var benchmarkLock sync.Mutex
7070
var memStats runtime.MemStats
7171

7272
// InternalBenchmark is an internal type but exported because it is cross-package;
73-
// part of the implementation of the "go test" command.
73+
// it is part of the implementation of the "go test" command.
7474
type InternalBenchmark struct {
7575
Name string
7676
F func(b *B)
@@ -342,7 +342,7 @@ func (b *B) ReportMetric(n float64, unit string) {
342342
b.extra[unit] = n
343343
}
344344

345-
// BenchmarkResult is the results of a benchmark run.
345+
// BenchmarkResult contains the results of a benchmark run.
346346
type BenchmarkResult struct {
347347
N int // The number of iterations.
348348
T time.Duration // The total time taken.
@@ -489,7 +489,7 @@ type benchContext struct {
489489
}
490490

491491
// RunBenchmarks is an internal function but exported because it is cross-package;
492-
// part of the implementation of the "go test" command.
492+
// it is part of the implementation of the "go test" command.
493493
func RunBenchmarks(matchString func(pat, str string) (bool, error), benchmarks []InternalBenchmark) {
494494
runBenchmarks("", matchString, benchmarks)
495495
}

src/testing/example.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type InternalExample struct {
2020
}
2121

2222
// RunExamples is an internal function but exported because it is cross-package;
23-
// part of the implementation of the "go test" command.
23+
// it is part of the implementation of the "go test" command.
2424
func RunExamples(matchString func(pat, str string) (bool, error), examples []InternalExample) (ok bool) {
2525
_, ok = runExamples(matchString, examples)
2626
return ok

src/testing/testing.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ func (t *T) Parallel() {
864864
}
865865

866866
// InternalTest is an internal type but exported because it is cross-package;
867-
// part of the implementation of the "go test" command.
867+
// it is part of the implementation of the "go test" command.
868868
type InternalTest struct {
869869
Name string
870870
F func(*T)
@@ -1215,7 +1215,7 @@ func listTests(matchString func(pat, str string) (bool, error), tests []Internal
12151215
}
12161216

12171217
// RunTests is an internal function but exported because it is cross-package;
1218-
// part of the implementation of the "go test" command.
1218+
// it is part of the implementation of the "go test" command.
12191219
func RunTests(matchString func(pat, str string) (bool, error), tests []InternalTest) (ok bool) {
12201220
ran, ok := runTests(matchString, tests)
12211221
if !ran && !haveExamples {

0 commit comments

Comments
 (0)