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

Method RequireAs

cli/clitest/clitest.go:263–265  ·  view source on GitHub ↗
(want interface{})

Source from the content-addressed store, hash-verified

261}
262
263func (w *ErrorWaiter) RequireAs(want interface{}) {
264 require.ErrorAs(w.t, w.Wait(), want)
265}
266
267// StartWithWaiter runs the command in a goroutine but returns the error instead
268// of asserting it. This is useful for testing error cases.

Callers 2

TestLicensesAddRealFunction · 0.80
TestLicensesDeleteRealFunction · 0.80

Calls 1

WaitMethod · 0.95

Tested by 2

TestLicensesAddRealFunction · 0.64
TestLicensesDeleteRealFunction · 0.64