fakePreparedAuthorizer is the prepared version of a FakeAuthorizer. It will return the same error as the original FakeAuthorizer.
| 1450 | // fakePreparedAuthorizer is the prepared version of a FakeAuthorizer. It will |
| 1451 | // return the same error as the original FakeAuthorizer. |
| 1452 | type mockPreparedAuthorizer struct { |
| 1453 | sync.RWMutex |
| 1454 | Original *MockAuthorizer |
| 1455 | Subject Subject |
| 1456 | Action policy.Action |
| 1457 | } |
| 1458 | |
| 1459 | func (f *mockPreparedAuthorizer) Authorize(ctx context.Context, object Object) error { |
| 1460 | return f.Original.Authorize(ctx, f.Subject, f.Action, object) |
nothing calls this directly
no outgoing calls
no test coverage detected