dissident

This commit is contained in:
Mark Bates 2019-09-03 16:38:48 -04:00
parent 2e1702c1e5
commit 754928946d
1 changed files with 1 additions and 2 deletions

View File

@ -46,8 +46,7 @@ func (s Suite) Test(t *testing.T) {
} }
func (s Suite) sub(t *testing.T, m reflect.Method) { func (s Suite) sub(t *testing.T, m reflect.Method) {
name := strings.TrimPrefix(m.Name, "Test_") name := fmt.Sprintf("%T/%s", s.Pkger, m.Name)
name = fmt.Sprintf("%T_%s", s.Pkger, name)
t.Run(name, func(st *testing.T) { t.Run(name, func(st *testing.T) {
defer func() { defer func() {
if err := recover(); err != nil { if err := recover(); err != nil {