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

Function convertErrorToStatus

internal/scorecard/scorecard.go:315–323  ·  view source on GitHub ↗
(err error, log string)

Source from the content-addressed store, hash-verified

313}
314
315func convertErrorToStatus(err error, log string) *v1alpha3.TestStatus {
316 result := v1alpha3.TestResult{}
317 result.State = v1alpha3.FailState
318 result.Errors = []string{err.Error()}
319 result.Log = log
320 return &v1alpha3.TestStatus{
321 Results: []v1alpha3.TestResult{result},
322 }
323}

Callers 2

getTestStatusMethod · 0.85
runTestMethod · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected