mirror of https://github.com/markbates/pkger.git
dissident
This commit is contained in:
parent
2e1702c1e5
commit
754928946d
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue