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 0ff4bb4 commit 2fd71d2Copy full SHA for 2fd71d2
suite/suite.go
@@ -7,6 +7,7 @@ import (
7
"reflect"
8
"regexp"
9
"runtime/debug"
10
+ "strings"
11
"sync"
12
"testing"
13
"time"
@@ -227,7 +228,7 @@ func Run(t *testing.T, suite TestingSuite) {
227
228
// Filtering method according to set regular expression
229
// specified command-line argument -m
230
func methodFilter(name string) (bool, error) {
- if ok, _ := regexp.MatchString("^Test", name); !ok {
231
+ if !strings.HasPrefix(name, "Test") {
232
return false, nil
233
}
234
return regexp.MatchString(*matchMethod, name)
0 commit comments