MCPcopy Index your code
hub / github.com/bootdotdev/bootdev / sendCLICommandResults

Function sendCLICommandResults

checks/runner.go:75–93  ·  view source on GitHub ↗
(ch chan tea.Msg, cmd api.CLIStepCLICommand, result api.CLICommandResult, index int)

Source from the content-addressed store, hash-verified

73}
74
75func 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
95func sendHTTPRequestResults(ch chan tea.Msg, req api.CLIStepHTTPRequest, result api.HTTPRequestResult, index int) {
96 for _, test := range req.Tests {

Callers 1

CLIChecksFunction · 0.85

Calls 1

prettyPrintCLICommandFunction · 0.85

Tested by

no test coverage detected