Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 321 Bytes
// +build !android
package prettytest
import (
"flag"
"regexp"
)
var (
testToRun = flag.String("pt.run", "", "[prettytest] regular expression that filters tests and examples to run")
)
func filterMethod(name string) bool {
ok, _ := regexp.MatchString(*testToRun, name)
return ok
}
func init() {
flag.Parse()
}
You can’t perform that action at this time.