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

Function must

coderd/rbac/authz_internal_test.go:1423–1428  ·  view source on GitHub ↗
(value T, err error)

Source from the content-addressed store, hash-verified

1421}
1422
1423func must[T any](value T, err error) T {
1424 if err != nil {
1425 panic(err)
1426 }
1427 return value
1428}
1429
1430type MockAuthorizer struct {
1431 AuthorizeFunc func(context.Context, Subject, policy.Action, Object) error

Callers 7

TestAuthorizeDomainFunction · 0.70
TestAuthorizeLevelsFunction · 0.70
TestAuthorizeScopeFunction · 0.70
TestScopeAllowListFunction · 0.70
testAuthorizeFunction · 0.70
TestRegoInputValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected