Skip to content

Commit 86540b6

Browse files
committed
fix: update wrap and xerror
1 parent 0c2d6d0 commit 86540b6

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ module github.com/pubgo/dix
33
go 1.14
44

55
require (
6-
github.com/pubgo/xerror v0.4.25
6+
github.com/pubgo/xerror v0.4.29
77
)

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ github.com/pubgo/xerror v0.4.24 h1:/iCEwEMQ5vuRfgsGfHQEpktU24ZixOAPR+CYQwU2DRE=
1515
github.com/pubgo/xerror v0.4.24/go.mod h1:oII+ykbOChXWPDP55anP3C+ORCc/hn70lBRu5zcqEeE=
1616
github.com/pubgo/xerror v0.4.25 h1:2Wdug+wytL7P1VXP7vdFX9lttpI9voICUYB5I8IDcRA=
1717
github.com/pubgo/xerror v0.4.25/go.mod h1:oII+ykbOChXWPDP55anP3C+ORCc/hn70lBRu5zcqEeE=
18+
github.com/pubgo/xerror v0.4.28 h1:IP982gHmzWH666MzTUxhhP/ev5bBhzBMOQDk3E7JD+Y=
19+
github.com/pubgo/xerror v0.4.28/go.mod h1:oII+ykbOChXWPDP55anP3C+ORCc/hn70lBRu5zcqEeE=
20+
github.com/pubgo/xerror v0.4.29 h1:5wCiEbMimxzB4kT1l6qXXfaCYJzLpWHhABwVkHgqVhA=
21+
github.com/pubgo/xerror v0.4.29/go.mod h1:oII+ykbOChXWPDP55anP3C+ORCc/hn70lBRu5zcqEeE=
1822
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
1923
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
2024
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=

inject_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ package dix
22

33
import (
44
"testing"
5+
6+
"github.com/pubgo/xerror"
57
)
68

79
func TestCycle(t *testing.T) {
10+
defer xerror.RecoverTest(t, true)
811
type (
912
A struct {
1013
}
@@ -30,7 +33,7 @@ func TestCycle(t *testing.T) {
3033
return new(C)
3134
})
3235

33-
c.register(func(*A) *C {
36+
c.Register(func(*A) *C {
3437
return new(C)
3538
})
3639
}

0 commit comments

Comments
 (0)