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

Function cases

coderd/rbac/authz_internal_test.go:1301–1309  ·  view source on GitHub ↗

cases applies a given function to all test cases. This makes generalities easier to create.

(opt func(c authTestCase) authTestCase, cases []authTestCase)

Source from the content-addressed store, hash-verified

1299
1300// cases applies a given function to all test cases. This makes generalities easier to create.
1301func cases(opt func(c authTestCase) authTestCase, cases []authTestCase) []authTestCase {
1302 if opt == nil {
1303 return cases
1304 }
1305 for i := range cases {
1306 cases[i] = opt(cases[i])
1307 }
1308 return cases
1309}
1310
1311type authTestCase struct {
1312 resource Object

Callers 4

TestAuthorizeDomainFunction · 0.85
TestAuthorizeLevelsFunction · 0.85
TestAuthorizeScopeFunction · 0.85
TestScopeAllowListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected