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

Function must

coderd/rbac/regosql/sqltypes/member_test.go:110–115  ·  view source on GitHub ↗
(v V, err error)

Source from the content-addressed store, hash-verified

108}
109
110func must[V any](v V, err error) V {
111 if err != nil {
112 panic(err)
113 }
114 return v
115}

Callers 2

TestEqualityFunction · 0.70
TestMembershipFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected