(ch chan tea.Msg, cmd api.CLIStepCLICommand, result api.CLICommandResult, index int)
| 73 | } |
| 74 | |
| 75 | func sendCLICommandResults(ch chan tea.Msg, cmd api.CLIStepCLICommand, result api.CLICommandResult, index int) { |
| 76 | for _, test := range cmd.Tests { |
| 77 | ch <- messages.StartTestMsg{Text: prettyPrintCLICommand(test, result.Variables)} |
| 78 | } |
| 79 | |
| 80 | for j := range cmd.Tests { |
| 81 | ch <- messages.ResolveTestMsg{ |
| 82 | StepIndex: index, |
| 83 | TestIndex: j, |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | ch <- messages.ResolveStepMsg{ |
| 88 | Index: index, |
| 89 | Result: &api.CLIStepResult{ |
| 90 | CLICommandResult: &result, |
| 91 | }, |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | func sendHTTPRequestResults(ch chan tea.Msg, req api.CLIStepHTTPRequest, result api.HTTPRequestResult, index int) { |
| 96 | for _, test := range req.Tests { |
no test coverage detected