(t *testing.T)
| 427 | } |
| 428 | |
| 429 | func TestMergeConfigLooksAtAllFields(t *testing.T) { |
| 430 | f := fuzz.New().NilChance(0).Funcs( |
| 431 | func(embeddedResource *runtime.RawExtension, c fuzz.Continue) {}, |
| 432 | fuzzQuantity, |
| 433 | fuzzResourceList, |
| 434 | fuzzResourceRequirements, |
| 435 | fuzzStringPtr, |
| 436 | ) |
| 437 | expectedConfig := &v1alpha1.OperatorConfiguration{} |
| 438 | actualConfig := &v1alpha1.OperatorConfiguration{} |
| 439 | f.Fuzz(expectedConfig) |
| 440 | mergeConfig(expectedConfig, actualConfig) |
| 441 | assert.Equal(t, expectedConfig, actualConfig, "merging configs should merge all fields") |
| 442 | } |
| 443 | |
| 444 | func TestMergeConfigMergesStorageAccessMode(t *testing.T) { |
| 445 | // Given |
nothing calls this directly
no test coverage detected