(t *testing.T, tests []diffTest)
| 507 | } |
| 508 | |
| 509 | func runDiffTests(t *testing.T, tests []diffTest) { |
| 510 | t.Helper() |
| 511 | |
| 512 | for _, test := range tests { |
| 513 | typName := reflect.TypeOf(test.left).Name() |
| 514 | t.Run(typName+"/"+test.name, func(t *testing.T) { |
| 515 | t.Parallel() |
| 516 | require.Equal(t, |
| 517 | test.exp, |
| 518 | diffValues(test.left, test.right, AuditableResources), |
| 519 | ) |
| 520 | }) |
| 521 | } |
| 522 | } |