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

Commit

Permalink
fix: do not split line (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Jan 6, 2022
1 parent 70d3604 commit c4ab9aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ GO_TEST_BINARY="gotest"
}

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

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

type cmdBuilder struct {
cmd string
cmd string
args []string
}

Expand Down

0 comments on commit c4ab9aa

Please sign in to comment.