Skip to content

Commit

Permalink
Fixes #42: incorrect output processing of in-test ok message
Browse files Browse the repository at this point in the history
  • Loading branch information
Janos Bonic committed May 15, 2022
1 parent 80c7114 commit f179b0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tokenizer/tokenizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ var stateMachine = []stateChange{
ActionSkip,
stateBetweenTests,
},
{
regexp.MustCompile(`^ok\s+(?P<Package>[^\s]+)\s+(\((?P<Cached>cached)\)|(?P<Elapsed>[^\s]*))(|([\s]+)coverage: ((?P<Coverage>.*)% of statements|\[no statements]))$`),
stateRun,
ActionPass,
stateRun,
},
{
regexp.MustCompile(`^ok\s+(?P<Package>[^\s]+)\s+(\((?P<Cached>cached)\)|(?P<Elapsed>[^\s]*))(|([\s]+)coverage: ((?P<Coverage>.*)% of statements|\[no statements]))$`),
stateInit,
Expand Down

0 comments on commit f179b0e

Please sign in to comment.