MCPcopy Create free account
hub / github.com/driangle/taskmd / verifySummaryLine

Function verifySummaryLine

apps/cli/internal/cli/verify.go:200–215  ·  view source on GitHub ↗
(result *verify.Result, r *lipgloss.Renderer)

Source from the content-addressed store, hash-verified

198}
199
200func verifySummaryLine(result *verify.Result, r *lipgloss.Renderer) string {
201 var parts []string
202 if result.Passed > 0 {
203 parts = append(parts, formatSuccess(fmt.Sprintf("%d passed", result.Passed), r))
204 }
205 if result.Failed > 0 {
206 parts = append(parts, formatError(fmt.Sprintf("%d failed", result.Failed), r))
207 }
208 if result.Pending > 0 {
209 parts = append(parts, formatWarning(fmt.Sprintf("%d pending", result.Pending), r))
210 }
211 if result.Skipped > 0 {
212 parts = append(parts, formatDim(fmt.Sprintf("%d skipped", result.Skipped), r))
213 }
214 return strings.Join(parts, ", ")
215}
216
217func formatVerifyStatus(status verify.StepStatus, r *lipgloss.Renderer) string {
218 switch status {

Callers 1

printVerifyTableFunction · 0.85

Calls 4

formatSuccessFunction · 0.85
formatErrorFunction · 0.85
formatWarningFunction · 0.85
formatDimFunction · 0.85

Tested by

no test coverage detected