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

Function must

coderd/database/dbauthz/dbauthz_test.go:306–311  ·  view source on GitHub ↗
(value T, err error)

Source from the content-addressed store, hash-verified

304}
305
306func must[T any](value T, err error) T {
307 if err != nil {
308 panic(err)
309 }
310 return value
311}
312
313func defaultIPAddress() pqtype.Inet {
314 return pqtype.Inet{

Callers 4

TestInsertCustomRolesFunction · 0.70
TestGroupsAuthFunction · 0.70
TestProvisionerJobMethod · 0.70
TestSystemFunctionsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected