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

Function RandomRBACAction

coderd/coderdtest/authorize.go:430–433  ·  view source on GitHub ↗

Random rbac helper funcs

()

Source from the content-addressed store, hash-verified

428// Random rbac helper funcs
429
430func RandomRBACAction() policy.Action {
431 all := rbac.AllActions()
432 return all[must(cryptorand.Intn(len(all)))]
433}
434
435func RandomRBACObject() rbac.Object {
436 return rbac.Object{

Callers 5

TestAuthzRecorderFunction · 0.92
fuzzAuthzFunction · 0.92
BenchmarkCacherFunction · 0.92
TestCacheFunction · 0.92
RandomRBACObjectFunction · 0.85

Calls 3

AllActionsFunction · 0.92
IntnFunction · 0.92
mustFunction · 0.70

Tested by 4

TestAuthzRecorderFunction · 0.74
fuzzAuthzFunction · 0.74
BenchmarkCacherFunction · 0.74
TestCacheFunction · 0.74