diff --git a/builder_test.go b/builder_test.go index 472c8e1..674553a 100644 --- a/builder_test.go +++ b/builder_test.go @@ -5,8 +5,8 @@ import ( "net/url" "testing" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" + "github.com/go-openapi/testify/v2/assert" + "github.com/go-openapi/testify/v2/require" ) func Test_Builder(t *testing.T) { diff --git a/decode_test.go b/decode_test.go index 6f6b669..3bdb679 100644 --- a/decode_test.go +++ b/decode_test.go @@ -4,7 +4,7 @@ import ( "testing" "unicode/utf8" - "github.com/stretchr/testify/require" + "github.com/go-openapi/testify/v2/require" ) func TestUnescapePercentEncoding(t *testing.T) { diff --git a/default_ports_test.go b/default_ports_test.go index a8ccc7d..7b6affc 100644 --- a/default_ports_test.go +++ b/default_ports_test.go @@ -3,7 +3,7 @@ package uri import ( "testing" - "github.com/stretchr/testify/require" + "github.com/go-openapi/testify/v2/require" ) type defautPortTest struct { diff --git a/dns_test.go b/dns_test.go index c572487..3ac89e2 100644 --- a/dns_test.go +++ b/dns_test.go @@ -6,7 +6,7 @@ import ( "testing" "unicode/utf8" - "github.com/stretchr/testify/require" + "github.com/go-openapi/testify/v2/require" ) func TestDNSvsHost(t *testing.T) { diff --git a/errors_test.go b/errors_test.go index ef63b8c..07f90ab 100644 --- a/errors_test.go +++ b/errors_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - "github.com/stretchr/testify/require" + "github.com/go-openapi/testify/v2/require" ) // errSentinelTest is used in test cases for when we want to assert an error diff --git a/fixtures_test.go b/fixtures_test.go index 8ea1b49..9e6df72 100644 --- a/fixtures_test.go +++ b/fixtures_test.go @@ -7,8 +7,8 @@ import ( "testing" "unicode/utf8" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" + "github.com/go-openapi/testify/v2/assert" + "github.com/go-openapi/testify/v2/require" ) func allGenerators() []testGenerator { diff --git a/fuzz_test.go b/fuzz_test.go index 3ea9870..1cf2e24 100644 --- a/fuzz_test.go +++ b/fuzz_test.go @@ -3,7 +3,7 @@ package uri import ( "testing" - "github.com/stretchr/testify/require" + "github.com/go-openapi/testify/v2/require" ) func FuzzParse(f *testing.F) { diff --git a/go.mod b/go.mod index 34eef45..e3ee18e 100644 --- a/go.mod +++ b/go.mod @@ -1,16 +1,13 @@ module github.com/fredbi/uri -go 1.19 +go 1.24.0 require ( + github.com/go-openapi/testify/v2 v2.0.2 github.com/pkg/profile v1.7.0 - github.com/stretchr/testify v1.11.1 ) require ( - github.com/davecgh/go-spew v1.1.1 // indirect github.com/felixge/fgprof v0.9.3 // indirect github.com/google/pprof v0.0.0-20211214055906-6f57359322fd // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 4d5783c..1f9860a 100644 --- a/go.sum +++ b/go.sum @@ -6,6 +6,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/felixge/fgprof v0.9.3 h1:VvyZxILNuCiUCSXtPtYmmtGvb65nqXh2QFWc0Wpf2/g= github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNun8eiPw= +github.com/go-openapi/testify/v2 v2.0.2 h1:X999g3jeLcoY8qctY/c/Z8iBHTbwLz7R2WXd6Ub6wls= +github.com/go-openapi/testify/v2 v2.0.2/go.mod h1:HCPmvFFnheKK2BuwSA0TbbdxJ3I16pjwMkYkP4Ywn54= github.com/google/pprof v0.0.0-20211214055906-6f57359322fd h1:1FjCyPC+syAzJ5/2S8fqdZK1R22vvA0J7JZKcuOIQ7Y= github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg= github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= @@ -16,11 +18,9 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= -github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/ip_test.go b/ip_test.go index 52de202..e9c66e4 100644 --- a/ip_test.go +++ b/ip_test.go @@ -3,7 +3,7 @@ package uri import ( "testing" - "github.com/stretchr/testify/require" + "github.com/go-openapi/testify/v2/require" ) func TestValidateIPv4(t *testing.T) { diff --git a/pre_go20_test.go b/pre_go20_test.go index 5f482ed..87655a7 100644 --- a/pre_go20_test.go +++ b/pre_go20_test.go @@ -6,7 +6,7 @@ import ( "errors" "testing" - "github.com/stretchr/testify/require" + "github.com/go-openapi/testify/v2/require" ) func TestErrUri(t *testing.T) { diff --git a/profile_test.go b/profile_test.go index 12286f6..f611368 100644 --- a/profile_test.go +++ b/profile_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/pkg/profile" - "github.com/stretchr/testify/require" + "github.com/go-openapi/testify/v2/require" ) func TestParseWithProfile(t *testing.T) { diff --git a/uri_test.go b/uri_test.go index 7153cca..cf9b91d 100644 --- a/uri_test.go +++ b/uri_test.go @@ -7,8 +7,8 @@ import ( "net/url" "testing" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" + "github.com/go-openapi/testify/v2/assert" + "github.com/go-openapi/testify/v2/require" ) type (