Documentation
¶
Overview ¶
Package mocks contains generated test doubles for authorization ports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthorizer ¶
MockAuthorizer is an autogenerated mock type for the Authorizer type
func NewMockAuthorizer ¶
func NewMockAuthorizer(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuthorizer
NewMockAuthorizer creates a new instance of MockAuthorizer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockAuthorizer) Authorize ¶
func (_mock *MockAuthorizer) Authorize(context1 context.Context, authorizationInput authz.AuthorizationInput) error
Authorize provides a mock function for the type MockAuthorizer
func (*MockAuthorizer) EXPECT ¶
func (_m *MockAuthorizer) EXPECT() *MockAuthorizer_Expecter
type MockAuthorizer_Authorize_Call ¶
MockAuthorizer_Authorize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Authorize'
func (*MockAuthorizer_Authorize_Call) Return ¶
func (_c *MockAuthorizer_Authorize_Call) Return(err error) *MockAuthorizer_Authorize_Call
func (*MockAuthorizer_Authorize_Call) Run ¶
func (_c *MockAuthorizer_Authorize_Call) Run(run func(context1 context.Context, authorizationInput authz.AuthorizationInput)) *MockAuthorizer_Authorize_Call
func (*MockAuthorizer_Authorize_Call) RunAndReturn ¶
func (_c *MockAuthorizer_Authorize_Call) RunAndReturn(run func(context1 context.Context, authorizationInput authz.AuthorizationInput) error) *MockAuthorizer_Authorize_Call
type MockAuthorizer_Expecter ¶
type MockAuthorizer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthorizer_Expecter) Authorize ¶
func (_e *MockAuthorizer_Expecter) Authorize(context1 any, authorizationInput any) *MockAuthorizer_Authorize_Call
Authorize is a helper method to define mock.On call
- context1 context.Context
- authorizationInput authz.AuthorizationInput
Click to show internal directories.
Click to hide internal directories.