Skip to content

Commit 6b6c9e8

Browse files
authored
upgrade nject to v2 (#146)
1 parent d13c518 commit 6b6c9e8

File tree

6 files changed

+8
-13
lines changed

6 files changed

+8
-13
lines changed

extra.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package ntest
33
import (
44
"reflect"
55

6-
"github.com/muir/nject"
6+
"github.com/muir/nject/v2"
77
)
88

99
// Extra is a means to obtain more than one of something needed

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ module github.com/memsql/ntest
33
go 1.18
44

55
require (
6-
github.com/muir/nject v1.9.0
6+
github.com/muir/nject/v2 v2.0.2
77
github.com/stretchr/testify v1.10.0
88
)
99

1010
require (
1111
github.com/davecgh/go-spew v1.1.1 // indirect
12-
github.com/kr/text v0.2.0 // indirect
1312
github.com/muir/reflectutils v0.11.0 // indirect
1413
github.com/pkg/errors v0.9.1 // indirect
1514
github.com/pmezard/go-difflib v1.0.0 // indirect

go.sum

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
21
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
32
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
4-
github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs=
5-
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
6-
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
7-
github.com/muir/nject v1.9.0 h1:4EbAUt27S2QYyyBP9X24SkMkdZOJ/ryE0jIhJPPnH0w=
8-
github.com/muir/nject v1.9.0/go.mod h1:J0XXW8+TVl/lygFfOh4eNKv0g+nQ1pi21hYytNFLQrc=
3+
github.com/muir/nject/v2 v2.0.2 h1:dlvgOYwSjYA8UqkTUxavus/Q4pVJoDaufSdQt+QcGU4=
4+
github.com/muir/nject/v2 v2.0.2/go.mod h1:cjqpJ4dBVi52Ny0GyPejQ3mK+Vl5mvaTowhfLNIb/ew=
95
github.com/muir/reflectutils v0.11.0 h1:h3rJpAq3KcKh65DLcrFgkzXdpmTHNOX66ar8/VQGrRg=
106
github.com/muir/reflectutils v0.11.0/go.mod h1:q/NHh230BgwnQX3fO3ooroT9c5y6Ymo44AEUnLPwYhc=
117
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
@@ -14,7 +10,7 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
1410
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1511
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
1612
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
13+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1714
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
18-
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
1915
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
2016
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

matrix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package ntest
33
import (
44
"testing"
55

6-
"github.com/muir/nject"
6+
"github.com/muir/nject/v2"
77
)
88

99
// RunParallelMatrix uses t.Run() to fork into multiple threads of execution for each

run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package ntest
33
import (
44
"testing"
55

6-
"github.com/muir/nject"
6+
"github.com/muir/nject/v2"
77
"github.com/stretchr/testify/require"
88
)
99

test_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/muir/nject"
8+
"github.com/muir/nject/v2"
99
"github.com/stretchr/testify/assert"
1010
"github.com/stretchr/testify/require"
1111

0 commit comments

Comments
 (0)