37
38
// EXPECT returns an object that allows the caller to indicate expected use.
40
>
return m.recorder
41
>
}
42
43
// Authorize mocks base method.
44
>
func (m *MockAuthorizer) Authorize(ctx context.Context, caller *Claims, target *CallTarget) (Result, error) {
authorizer_mock.go
45
>
m.ctrl.T.Helper()
46
>
ret := m.ctrl.Call(m, "Authorize", ctx, caller, target)
47
>
ret0, _ := ret[0].(Result)
48
>
ret1, _ := ret[1].(error)
49
>
return ret0, ret1
50
>
}
51
52
// Authorize indicates an expected call of Authorize.
53
>
func (mr *MockAuthorizerMockRecorder) Authorize(ctx, caller, target any) *gomock.Call {
authorizer_mock.go
54
>
mr.mock.ctrl.T.Helper()
55
>
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Authorize", reflect.TypeOf((*MockAuthorizer)(nil).Authorize), ctx, caller, target)
56
>
}
57
58
// MockhasNamespace is a mock of hasNamespace interface.