(t *testing.T, sub rbac.Subject, rec rbac.Authorizer, n int)
| 117 | } |
| 118 | |
| 119 | func fuzzAuthz(t *testing.T, sub rbac.Subject, rec rbac.Authorizer, n int) []coderdtest.ActionObjectPair { |
| 120 | t.Helper() |
| 121 | pairs := make([]coderdtest.ActionObjectPair, 0, n) |
| 122 | |
| 123 | for i := 0; i < n; i++ { |
| 124 | p := coderdtest.ActionObjectPair{Action: coderdtest.RandomRBACAction(), Object: coderdtest.RandomRBACObject()} |
| 125 | _ = rec.Authorize(context.Background(), sub, p.Action, p.Object) |
| 126 | pairs = append(pairs, p) |
| 127 | } |
| 128 | return pairs |
| 129 | } |
no test coverage detected