We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c58bc90 commit 7d37b5cCopy full SHA for 7d37b5c
suite/suite.go
@@ -7,6 +7,7 @@ import (
7
"reflect"
8
"regexp"
9
"runtime/debug"
10
+ "strings"
11
"sync"
12
"testing"
13
"time"
@@ -219,7 +220,7 @@ func Run(t *testing.T, suite TestingSuite) {
219
220
// Filtering method according to set regular expression
221
// specified command-line argument -m
222
func methodFilter(name string) (bool, error) {
- if ok, _ := regexp.MatchString("^Test", name); !ok {
223
+ if !strings.HasPrefix(name, "Test") {
224
return false, nil
225
}
226
return regexp.MatchString(*matchMethod, name)
0 commit comments