@@ -46,7 +46,7 @@ var errCovdataFailed = errors.New("go tool covdata textfmt failed")
4646//
4747// Without CollectSubprocessCoverage, coverage data is written to per-test temp
4848// directories and cleaned up automatically. Processes that use [WithCoverDir]
49- // are not affected — their coverage data goes to the specified directory.
49+ // are not affected. Their coverage data goes to the specified directory.
5050func CollectSubprocessCoverage (m * testing.M , outputPath string ) int {
5151 return collectSubprocessCoverage (m .Run , outputPath )
5252}
@@ -81,7 +81,7 @@ func collectSubprocessCoverage(run func() int, outputPath string) int {
8181
8282// convertProcessCoverage converts binary coverage data under coverDir to a
8383// text profile at outputPath using `go tool covdata textfmt`. coverDir may
84- // hold coverage files directly or one subdir per subprocess run; both
84+ // hold coverage files directly or one subdir per subprocess run, both
8585// layouts are aggregated.
8686func convertProcessCoverage (coverDir string , outputPath string ) error {
8787 inputDirs , err := collectCoverInputDirs (coverDir )
@@ -119,7 +119,7 @@ func convertProcessCoverage(coverDir string, outputPath string) error {
119119}
120120
121121// collectCoverInputDirs returns the input directories for `go tool covdata`.
122- // Per-run subdirs each count as one input; a flat coverDir with files counts
122+ // Per-run subdirs each count as one input, a flat coverDir with files counts
123123// as a single input.
124124func collectCoverInputDirs (coverDir string ) ([]string , error ) {
125125 entries , err := os .ReadDir (coverDir )
0 commit comments