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

Method runTest

internal/scorecard/scorecard.go:145–157  ·  view source on GitHub ↗
(ctx context.Context, test v1alpha3.TestConfiguration)

Source from the content-addressed store, hash-verified

143}
144
145func (o Scorecard) runTest(ctx context.Context, test v1alpha3.TestConfiguration) v1alpha3.Test {
146 result, err := o.TestRunner.RunTest(ctx, test, o.PodSecurity)
147 if err != nil {
148 result = convertErrorToStatus(err, "")
149 }
150
151 out := v1alpha3.NewTest()
152 //TODO: Add timestamp to result when API version updates
153 //out.Tstamp = time.Now().Format(time.RFC850)
154 out.Spec = test
155 out.Status = *result
156 return out
157}
158
159// selectTests applies an optionally passed selector expression
160// against the configured set of tests, returning the selected tests

Callers 2

runStageParallelMethod · 0.95
runStageSequentialMethod · 0.95

Calls 2

convertErrorToStatusFunction · 0.85
RunTestMethod · 0.65

Tested by

no test coverage detected