MCPcopy Create free account
hub / github.com/bytebase/bytebase / convertToPlanCheckRunResults

Function convertToPlanCheckRunResults

backend/api/v1/plan_service.go:1250–1256  ·  view source on GitHub ↗
(results []*storepb.PlanCheckRunResult_Result)

Source from the content-addressed store, hash-verified

1248}
1249
1250func convertToPlanCheckRunResults(results []*storepb.PlanCheckRunResult_Result) []*v1pb.PlanCheckRun_Result {
1251 var resultsV1 []*v1pb.PlanCheckRun_Result
1252 for _, result := range results {
1253 resultsV1 = append(resultsV1, convertToPlanCheckRunResult(result))
1254 }
1255 return resultsV1
1256}
1257
1258func convertToPlanCheckRunResult(result *storepb.PlanCheckRunResult_Result) *v1pb.PlanCheckRun_Result {
1259 resultV1 := &v1pb.PlanCheckRun_Result{

Callers 1

convertToPlanCheckRunFunction · 0.85

Calls 1

Tested by

no test coverage detected