Errors is optional. If it is never called, it will not be asserted.
(err error)
| 477 | |
| 478 | // Errors is optional. If it is never called, it will not be asserted. |
| 479 | func (m *expects) Errors(err error) *expects { |
| 480 | m.err = err |
| 481 | return m |
| 482 | } |
| 483 | |
| 484 | func (m *expects) FailSystemObjectChecks() *expects { |
| 485 | return m.WithSuccessAuthorizer(func(ctx context.Context, subject rbac.Subject, action policy.Action, obj rbac.Object) error { |
no outgoing calls
no test coverage detected