(t *testing.T)
| 243 | } |
| 244 | |
| 245 | func TestNumberOfOverrides(t *testing.T) { |
| 246 | // Asserts that the number of overrides in the new config is the same as the |
| 247 | // number of overrides in the legacy config. |
| 248 | assert.Equal(t, countOverrides(LegacyOverrides{}), countOverrides(Overrides{})) |
| 249 | } |
| 250 | |
| 251 | // countOverrides recursively counts the number of non-struct fields in a struct. |
| 252 | func countOverrides(v any) int { |
nothing calls this directly
no test coverage detected