MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / TestMergeConfigLooksAtAllFields

Function TestMergeConfigLooksAtAllFields

pkg/config/sync_test.go:429–442  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

427}
428
429func 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
444func TestMergeConfigMergesStorageAccessMode(t *testing.T) {
445 // Given

Callers

nothing calls this directly

Calls 1

mergeConfigFunction · 0.85

Tested by

no test coverage detected