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

Function must

coderd/coderdtest/authorize.go:479–484  ·  view source on GitHub ↗
(value T, err error)

Source from the content-addressed store, hash-verified

477}
478
479func must[T any](value T, err error) T {
480 if err != nil {
481 panic(err)
482 }
483 return value
484}
485
486type FakeAccessControlStore struct{}
487

Callers 2

RandomRBACActionFunction · 0.70
randomRBACTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected