77 "errors"
88 "testing"
99
10- "gotest.tools/v3 /assert"
11- is "gotest.tools/v3/assert/cmp "
10+ "github.com/stretchr/testify /assert"
11+ "github.com/stretchr/testify/require "
1212)
1313
1414func TestParseArgs (t * testing.T ) {
@@ -25,10 +25,10 @@ func TestParseArgs(t *testing.T) {
2525
2626 for i := range flagArgs {
2727 args , err = ParseFlag (flagArgs [i ], args )
28- assert . NilError (t , err )
28+ require . NoError (t , err )
2929 }
30- assert .Check (t , is . Len ( args .Get ("created" ), 1 ) )
31- assert .Check (t , is . Len ( args .Get ("image.name" ), 2 ) )
30+ assert .Len (t , args .Get ("created" ), 1 )
31+ assert .Len (t , args .Get ("image.name" ), 2 )
3232}
3333
3434func TestParseArgsEdgeCase (t * testing.T ) {
@@ -234,7 +234,7 @@ func TestArgsMatch(t *testing.T) {
234234 }
235235
236236 for args , field := range matches {
237- assert .Check (t , args .Match (field , source ),
237+ assert .Truef (t , args .Match (field , source ),
238238 "Expected field %s to match %s" , field , source )
239239 }
240240
@@ -258,7 +258,7 @@ func TestArgsMatch(t *testing.T) {
258258 }
259259
260260 for args , field := range differs {
261- assert .Check (t , ! args .Match (field , source ), "Expected field %s to not match %s" , field , source )
261+ assert .Falsef (t , args .Match (field , source ), "Expected field %s to not match %s" , field , source )
262262 }
263263}
264264
0 commit comments