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

Function Run

cli/clitest/clitest.go:216–221  ·  view source on GitHub ↗

Run runs the command and asserts that there is no error.

(t *testing.T, inv *serpent.Invocation)

Source from the content-addressed store, hash-verified

214
215// Run runs the command and asserts that there is no error.
216func Run(t *testing.T, inv *serpent.Invocation) {
217 t.Helper()
218
219 err := inv.Run()
220 require.NoError(t, err)
221}
222
223type ErrorWaiter struct {
224 waitOnce sync.Once

Callers 3

TestTemplateInitFunction · 0.92

Calls 2

HelperMethod · 0.65
RunMethod · 0.65

Tested by 3

TestTemplateInitFunction · 0.74