@@ -265,7 +265,7 @@ func TestFormatUUID3(t *testing.T) {
265
265
var uuidZero UUID3
266
266
err := uuidZero .UnmarshalJSON ([]byte (jsonNull ))
267
267
require .NoError (t , err )
268
- assert .EqualValues (t , UUID3 ("" ), uuidZero )
268
+ assert .Equal (t , UUID3 ("" ), uuidZero )
269
269
}
270
270
271
271
func TestFormatUUID4 (t * testing.T ) {
@@ -296,7 +296,7 @@ func TestFormatUUID4(t *testing.T) {
296
296
var uuidZero UUID4
297
297
err := uuidZero .UnmarshalJSON ([]byte (jsonNull ))
298
298
require .NoError (t , err )
299
- assert .EqualValues (t , UUID4 ("" ), uuidZero )
299
+ assert .Equal (t , UUID4 ("" ), uuidZero )
300
300
}
301
301
302
302
func TestFormatUUID5 (t * testing.T ) {
@@ -327,7 +327,7 @@ func TestFormatUUID5(t *testing.T) {
327
327
var uuidZero UUID5
328
328
err := uuidZero .UnmarshalJSON ([]byte (jsonNull ))
329
329
require .NoError (t , err )
330
- assert .EqualValues (t , UUID5 ("" ), uuidZero )
330
+ assert .Equal (t , UUID5 ("" ), uuidZero )
331
331
}
332
332
333
333
func TestFormatUUID (t * testing.T ) {
@@ -365,7 +365,7 @@ func TestFormatUUID(t *testing.T) {
365
365
var uuidZero UUID
366
366
err := uuidZero .UnmarshalJSON ([]byte (jsonNull ))
367
367
require .NoError (t , err )
368
- assert .EqualValues (t , UUID ("" ), uuidZero )
368
+ assert .Equal (t , UUID ("" ), uuidZero )
369
369
}
370
370
371
371
func TestFormatISBN (t * testing.T ) {
@@ -425,7 +425,7 @@ func TestFormatBase64(t *testing.T) {
425
425
var subj Base64
426
426
err := subj .UnmarshalText ([]byte (str ))
427
427
require .NoError (t , err )
428
- assert .EqualValues (t , expected , subj )
428
+ assert .Equal (t , expected , subj )
429
429
430
430
b , err = subj .MarshalText ()
431
431
require .NoError (t , err )
@@ -434,7 +434,7 @@ func TestFormatBase64(t *testing.T) {
434
434
var subj2 Base64
435
435
err = subj2 .UnmarshalJSON (bj )
436
436
require .NoError (t , err )
437
- assert .EqualValues (t , expected , subj2 )
437
+ assert .Equal (t , expected , subj2 )
438
438
439
439
b , err = subj2 .MarshalJSON ()
440
440
require .NoError (t , err )
@@ -456,18 +456,18 @@ func TestFormatBase64(t *testing.T) {
456
456
require .NoError (t , err )
457
457
sqlvalueAsString , ok := sqlvalue .(string )
458
458
if assert .Truef (t , ok , "[%s]Value: expected driver value to be a string" , "byte" ) {
459
- assert .EqualValuesf (t , str , sqlvalueAsString , "[%s]Value: expected %v and %v to be equal" , "byte" , sqlvalue , str )
459
+ assert .Equal (t , str , sqlvalueAsString , "[%s]Value: expected %v and %v to be equal" , "byte" , sqlvalue , str )
460
460
}
461
461
// Scanner interface
462
462
var subj3 Base64
463
463
err = subj3 .Scan ([]byte (str ))
464
464
require .NoError (t , err )
465
- assert .EqualValues (t , str , subj3 .String ())
465
+ assert .Equal (t , str , subj3 .String ())
466
466
467
467
var subj4 Base64
468
468
err = subj4 .Scan (str )
469
469
require .NoError (t , err )
470
- assert .EqualValues (t , str , subj4 .String ())
470
+ assert .Equal (t , str , subj4 .String ())
471
471
472
472
err = subj4 .Scan (123 )
473
473
require .Error (t , err )
@@ -511,7 +511,7 @@ func testStringFormat(t *testing.T, what testableFormat, format, with string, va
511
511
require .NoError (t , err )
512
512
val = reflect .Indirect (reflect .ValueOf (what ))
513
513
strVal = val .String ()
514
- assert .EqualValuesf (t , with , strVal , "[%s]UnmarshalJSON: expected %v and %v to be value equal" , format , strVal , with )
514
+ assert .Equal (t , with , strVal , "[%s]UnmarshalJSON: expected %v and %v to be value equal" , format , strVal , with )
515
515
516
516
b , err = what .MarshalJSON ()
517
517
require .NoError (t , err )
@@ -527,21 +527,21 @@ func testStringFormat(t *testing.T, what testableFormat, format, with string, va
527
527
require .NoError (t , err )
528
528
val = reflect .Indirect (reflect .ValueOf (what ))
529
529
strVal = val .String ()
530
- assert .EqualValuesf (t , with , strVal , "[%s]bson.Unmarshal: expected %v and %v to be equal (reset value) " , format , what , with )
530
+ assert .Equal (t , with , strVal , "[%s]bson.Unmarshal: expected %v and %v to be equal (reset value) " , format , what , with )
531
531
532
532
// Scanner interface
533
533
resetValue (t , format , what )
534
534
err = what .Scan (with )
535
535
require .NoError (t , err )
536
536
val = reflect .Indirect (reflect .ValueOf (what ))
537
537
strVal = val .String ()
538
- assert .EqualValuesf (t , with , strVal , "[%s]Scan: expected %v and %v to be value equal" , format , strVal , with )
538
+ assert .Equal (t , with , strVal , "[%s]Scan: expected %v and %v to be value equal" , format , strVal , with )
539
539
540
540
err = what .Scan ([]byte (with ))
541
541
require .NoError (t , err )
542
542
val = reflect .Indirect (reflect .ValueOf (what ))
543
543
strVal = val .String ()
544
- assert .EqualValuesf (t , with , strVal , "[%s]Scan: expected %v and %v to be value equal" , format , strVal , with )
544
+ assert .Equal (t , with , strVal , "[%s]Scan: expected %v and %v to be value equal" , format , strVal , with )
545
545
546
546
err = what .Scan (123 )
547
547
require .Error (t , err )
@@ -551,7 +551,7 @@ func testStringFormat(t *testing.T, what testableFormat, format, with string, va
551
551
require .NoError (t , err )
552
552
sqlvalueAsString , ok := sqlvalue .(string )
553
553
if assert .Truef (t , ok , "[%s]Value: expected driver value to be a string" , format ) {
554
- assert .EqualValuesf (t , with , sqlvalueAsString , "[%s]Value: expected %v and %v to be equal" , format , sqlvalue , with )
554
+ assert .Equal (t , with , sqlvalueAsString , "[%s]Value: expected %v and %v to be equal" , format , sqlvalue , with )
555
555
}
556
556
557
557
// validation with Registry
0 commit comments