(ch chan tea.Msg, req api.CLIStepHTTPRequest, result api.HTTPRequestResult, index int)
| 93 | } |
| 94 | |
| 95 | func sendHTTPRequestResults(ch chan tea.Msg, req api.CLIStepHTTPRequest, result api.HTTPRequestResult, index int) { |
| 96 | for _, test := range req.Tests { |
| 97 | ch <- messages.StartTestMsg{Text: prettyPrintHTTPTest(test, result.Variables)} |
| 98 | } |
| 99 | |
| 100 | for j := range req.Tests { |
| 101 | ch <- messages.ResolveTestMsg{ |
| 102 | StepIndex: index, |
| 103 | TestIndex: j, |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | ch <- messages.ResolveStepMsg{ |
| 108 | Index: index, |
| 109 | Result: &api.CLIStepResult{ |
| 110 | HTTPRequestResult: &result, |
| 111 | }, |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | func ApplySubmissionResults(cliData api.CLIData, failure *api.StructuredErrCLI, ch chan tea.Msg) { |
| 116 | for i, step := range cliData.Steps { |
no test coverage detected