@@ -440,7 +440,7 @@ func testApplyMapHelper(t *testing.T, testDir string, makeNewNote func() *Releas
440
440
require .True (t , ok , "found map test without testcase" )
441
441
442
442
// Read the property this test case checks
443
- property , ok := testcase .(map [interface {}] interface {} )["property" ].(string )
443
+ property , ok := testcase .(map [string ] any )["property" ].(string )
444
444
require .True (t , ok )
445
445
require .NotEmpty (t , property )
446
446
require .NotEmpty (t , property , "testcase found without property" )
@@ -451,10 +451,10 @@ func testApplyMapHelper(t *testing.T, testDir string, makeNewNote func() *Releas
451
451
originalVal := reflect .Indirect (reflectedOriginalNote ).FieldByName (property )
452
452
453
453
// Factor the test name
454
- testName , ok := testcase .(map [interface {}] interface {} )["name" ].(string )
454
+ testName , ok := testcase .(map [string ] any )["name" ].(string )
455
455
require .True (t , ok )
456
456
457
- switch expectedValue := testcase .(map [interface {}] interface {} )["expected" ].(type ) {
457
+ switch expectedValue := testcase .(map [string ] any )["expected" ].(type ) {
458
458
case bool :
459
459
actualVal := reflect .Indirect (reflectedNote ).FieldByName (property ).Bool ()
460
460
require .Equalf (t , expectedValue , actualVal , "Failed %s" , testName )
@@ -464,7 +464,7 @@ func testApplyMapHelper(t *testing.T, testDir string, makeNewNote func() *Releas
464
464
actualVal := reflect .Indirect (reflectedNote ).FieldByName (property ).String ()
465
465
require .Equalf (t , expectedValue , actualVal , "Failed %s" , testName )
466
466
require .NotEqualf (t , expectedValue , originalVal .String (), "Failed %s" , testName )
467
- case []interface {} :
467
+ case []any :
468
468
// Handle string slice cases
469
469
actualVal := reflect .Indirect (reflectedNote ).FieldByName (property )
470
470
actualSlice := make ([]string , 0 )
0 commit comments