MCPcopy
hub / github.com/operator-framework/operator-sdk / setTestDefaults

Method setTestDefaults

internal/scorecard/scorecard.go:118–125  ·  view source on GitHub ↗
(tests []v1alpha3.TestConfiguration)

Source from the content-addressed store, hash-verified

116}
117
118func (o Scorecard) setTestDefaults(tests []v1alpha3.TestConfiguration) []v1alpha3.TestConfiguration {
119 for i := range tests {
120 if len(tests[i].Storage.Spec.MountPath.Path) == 0 {
121 tests[i].Storage.Spec.MountPath.Path = o.Config.Storage.Spec.MountPath.Path
122 }
123 }
124 return tests
125}
126
127func (o Scorecard) runStageParallel(ctx context.Context, tests []v1alpha3.TestConfiguration, results chan<- v1alpha3.Test) {
128 var wg sync.WaitGroup

Callers 1

RunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected