(text string, spinner string, isFinished bool, isSubmit *bool, passed *bool)
| 47 | } |
| 48 | |
| 49 | func renderTest(text string, spinner string, isFinished bool, isSubmit *bool, passed *bool) string { |
| 50 | testStr := "" |
| 51 | if !isFinished { |
| 52 | testStr += fmt.Sprintf("%s %s", spinner, text) |
| 53 | } else if isSubmit != nil && !*isSubmit { |
| 54 | testStr += text |
| 55 | } else if passed == nil { |
| 56 | testStr += gray.Render(fmt.Sprintf("? %s", text)) |
| 57 | } else if *passed { |
| 58 | testStr += green.Render(fmt.Sprintf("✓ %s", text)) |
| 59 | } else { |
| 60 | testStr += red.Render(fmt.Sprintf("X %s", text)) |
| 61 | } |
| 62 | return testStr |
| 63 | } |
| 64 | |
| 65 | func renderJqOutputs(outputs []api.CLICommandJqOutput) string { |
| 66 | if len(outputs) == 0 { |
no outgoing calls
no test coverage detected