MCPcopy Create free account
hub / github.com/conforma/cli / AppstudioReportForError

Function AppstudioReportForError

internal/applicationsnapshot/report.go:414–424  ·  view source on GitHub ↗
(prefix string, err error)

Source from the content-addressed store, hash-verified

412}
413
414func AppstudioReportForError(prefix string, err error) TestReport {
415 return TestReport{
416 Timestamp: fmt.Sprint(time.Now().UTC().Unix()),
417 Namespace: "",
418 Successes: 0,
419 Warnings: 0,
420 Failures: 0,
421 Result: "ERROR",
422 Note: fmt.Sprintf("Error: %s: %s", prefix, err.Error()),
423 }
424}

Callers 1

appstudioErrorHandlerFunction · 0.92

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected