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

Function requireAllowAll

coderd/database/modelmethods_internal_test.go:235–240  ·  view source on GitHub ↗
(t *testing.T, s rbac.Scope)

Source from the content-addressed store, hash-verified

233}
234
235func requireAllowAll(t *testing.T, s rbac.Scope) {
236 t.Helper()
237 require.Len(t, s.AllowIDList, 1)
238 require.Equal(t, policy.WildcardSymbol, s.AllowIDList[0].ID)
239 require.Equal(t, policy.WildcardSymbol, s.AllowIDList[0].Type)
240}

Callers 1

TestAPIKeyScopesExpandFunction · 0.85

Calls 3

HelperMethod · 0.65
LenMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected