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

Method Pair

coderd/coderdtest/authorize.go:171–176  ·  view source on GitHub ↗

Pair is on the RecordingAuthorizer to be easy to find and keep the pkg interface smaller.

(action policy.Action, object rbac.Objecter)

Source from the content-addressed store, hash-verified

169// Pair is on the RecordingAuthorizer to be easy to find and keep the pkg
170// interface smaller.
171func (*RecordingAuthorizer) Pair(action policy.Action, object rbac.Objecter) ActionObjectPair {
172 return ActionObjectPair{
173 Action: action,
174 Object: object.RBACObject(),
175 }
176}
177
178// AllAsserted returns an error if all calls to Authorize() have not been
179// asserted and checked. This is useful for testing to ensure that all

Callers 5

TestCacheFunction · 0.95
TestCacheRBACFunction · 0.80
AssertCheckedMethod · 0.80
AssertInOrderMethod · 0.80
TestNewFunction · 0.80

Calls 1

RBACObjectMethod · 0.65

Tested by 3

TestCacheFunction · 0.76
TestCacheRBACFunction · 0.64
TestNewFunction · 0.64