MCPcopy Index your code
hub / github.com/coder/coder / Wait

Method Wait

cli/clitest/clitest.go:236–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234}
235
236func (w *ErrorWaiter) Wait() error {
237 w.waitOnce.Do(func() {
238 var ok bool
239 w.cachedError, ok = <-w.c
240 if !ok {
241 panic("unexpected channel close")
242 }
243 })
244 return w.cachedError
245}
246
247func (w *ErrorWaiter) RequireSuccess() {
248 require.NoError(w.t, w.Wait())

Callers 5

RequireSuccessMethod · 0.95
RequireErrorMethod · 0.95
RequireContainsMethod · 0.95
RequireIsMethod · 0.95
RequireAsMethod · 0.95

Calls 1

DoMethod · 0.65

Tested by

no test coverage detected