(t *testing.T, expected, actual []any)
| 270 | } |
| 271 | |
| 272 | func checkExtraFields(t *testing.T, expected, actual []any) { |
| 273 | t.Parallel() |
| 274 | assert.Equal(t, len(expected), len(actual)) |
| 275 | expectedMap := map[string]string{} |
| 276 | actualMap := map[string]string{} |
| 277 | |
| 278 | for i := 0; i < len(expected); i += 2 { |
| 279 | expectedMap[expected[i].(string)] = expected[i+1].(string) |
| 280 | actualMap[actual[i].(string)] = actual[i+1].(string) |
| 281 | } |
| 282 | |
| 283 | assert.Equal(t, expectedMap, actualMap) |
| 284 | } |
no test coverage detected