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

Function applySubmissionResultsMessages

checks/runner_test.go:68–83  ·  view source on GitHub ↗
(cliData api.CLIData, failure *api.StructuredErrCLI)

Source from the content-addressed store, hash-verified

66}
67
68func applySubmissionResultsMessages(cliData api.CLIData, failure *api.StructuredErrCLI) []tea.Msg {
69 ch := make(chan tea.Msg)
70 done := make(chan struct{})
71 go func() {
72 defer close(ch)
73 defer close(done)
74 ApplySubmissionResults(cliData, failure, ch)
75 }()
76
77 var msgs []tea.Msg
78 for msg := range ch {
79 msgs = append(msgs, msg)
80 }
81 <-done
82 return msgs
83}
84
85func assertMessages(t *testing.T, got []tea.Msg, want []tea.Msg) {
86 t.Helper()

Calls 1

ApplySubmissionResultsFunction · 0.85

Tested by

no test coverage detected