Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit c4ab9aa

Browse files
authored
fix: do not split line (#39)
1 parent 70d3604 commit c4ab9aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmd/root.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ GO_TEST_BINARY="gotest"
130130
}
131131

132132
c := newCmdBuilder(gotest).arg(
133-
"-covermode=" + mode,
134-
"-coverprofile=" + files[k],
135-
"-coverpkg=" + strings.Join(packages, ","),
133+
"-covermode="+mode,
134+
"-coverprofile="+files[k],
135+
"-coverpkg="+strings.Join(packages, ","),
136136
).argNoBlank(tagsArg).arg(passthrough...).arg(pkg).exec()
137137
stderr, err := c.StderrPipe()
138138
check(err)
@@ -180,7 +180,7 @@ func scan(wg *sync.WaitGroup, r io.ReadCloser) {
180180
if strings.Contains(line, "warning: no packages being tested depend on matches for pattern") {
181181
continue
182182
}
183-
fmt.Println(strings.Split(line, "% of statements in")[0])
183+
fmt.Println(line)
184184
}
185185
}
186186

@@ -228,7 +228,7 @@ func (f *filter) Write(p []byte) (n int, err error) {
228228
}
229229

230230
type cmdBuilder struct {
231-
cmd string
231+
cmd string
232232
args []string
233233
}
234234

0 commit comments

Comments
 (0)