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

Function must

coderd/provisionerdserver/provisionerdserver_test.go:5317–5322  ·  view source on GitHub ↗
(value T, err error)

Source from the content-addressed store, hash-verified

5315}
5316
5317func must[T any](value T, err error) T {
5318 if err != nil {
5319 panic(err)
5320 }
5321 return value
5322}
5323
5324var (
5325 errUnimplemented = xerrors.New("unimplemented")

Callers 6

TestAcquireJobFunction · 0.70
TestUpdateJobFunction · 0.70
TestFailJobFunction · 0.70
TestCompleteJobFunction · 0.70
TestNotificationsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected