Skip to content

Commit

Permalink
fix bench color for #49
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoh86 committed Nov 26, 2022
1 parent 302ce3c commit d79bafc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions editor/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ type test struct {
const noTestPattern = `[ \t]+\[(?:no test files|no tests to run)\]`

var (
runhead = regexp.MustCompile(`(?m)^=== RUN Test.*`)
passtail = regexp.MustCompile(`(?m)^([ \t]*)--- PASS: Test.*`)
skiptail = regexp.MustCompile(`(?m)^([ \t]*)--- SKIP: Test.*`)
failtail = regexp.MustCompile(`(?m)^([ \t]*)--- FAIL: Test.*`)
runhead = regexp.MustCompile(`(?m)^=== RUN (Test|Benchmark).*`)
passtail = regexp.MustCompile(`(?m)^([ \t]*)--- PASS: (Test|Benchmark).*`)
skiptail = regexp.MustCompile(`(?m)^([ \t]*)--- SKIP: (Test|Benchmark).*`)
failtail = regexp.MustCompile(`(?m)^([ \t]*)--- FAIL: (Test|Benchmark).*`)
passlonely = regexp.MustCompile(`(?m)^PASS[ \t]*$`)
faillonely = regexp.MustCompile(`(?m)^FAIL[ \t]*$`)

Expand Down

0 comments on commit d79bafc

Please sign in to comment.