Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: repository.go
Generated by this command:
mockgen -source=repository.go -destination=../mock/ticket/mock.go -package=ticket -typed
Package ticket is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) BalancesForAccount(ctx context.Context, accountId int64, req ticket.BalanceRequest) ([]ticket.Balance, error)
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) List(ctx context.Context, ticketer string, limit, offset int64) ([]ticket.Ticket, error)
- func (m *MockRepository) Updates(ctx context.Context, req ticket.UpdatesRequest) ([]ticket.TicketUpdate, error)
- func (m *MockRepository) UpdatesForOperation(ctx context.Context, operationId int64) ([]ticket.TicketUpdate, error)
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) BalancesForAccount(ctx, accountId, req any) *RepositoryBalancesForAccountCall
- func (mr *MockRepositoryMockRecorder) List(ctx, ticketer, limit, offset any) *RepositoryListCall
- func (mr *MockRepositoryMockRecorder) Updates(ctx, req any) *RepositoryUpdatesCall
- func (mr *MockRepositoryMockRecorder) UpdatesForOperation(ctx, operationId any) *RepositoryUpdatesForOperationCall
- type RepositoryBalancesForAccountCall
- type RepositoryListCall
- func (c *RepositoryListCall) Do(f func(context.Context, string, int64, int64) ([]ticket.Ticket, error)) *RepositoryListCall
- func (c *RepositoryListCall) DoAndReturn(f func(context.Context, string, int64, int64) ([]ticket.Ticket, error)) *RepositoryListCall
- func (c *RepositoryListCall) Return(arg0 []ticket.Ticket, arg1 error) *RepositoryListCall
- type RepositoryUpdatesCall
- func (c *RepositoryUpdatesCall) Do(f func(context.Context, ticket.UpdatesRequest) ([]ticket.TicketUpdate, error)) *RepositoryUpdatesCall
- func (c *RepositoryUpdatesCall) DoAndReturn(f func(context.Context, ticket.UpdatesRequest) ([]ticket.TicketUpdate, error)) *RepositoryUpdatesCall
- func (c *RepositoryUpdatesCall) Return(arg0 []ticket.TicketUpdate, arg1 error) *RepositoryUpdatesCall
- type RepositoryUpdatesForOperationCall
- func (c *RepositoryUpdatesForOperationCall) Do(f func(context.Context, int64) ([]ticket.TicketUpdate, error)) *RepositoryUpdatesForOperationCall
- func (c *RepositoryUpdatesForOperationCall) DoAndReturn(f func(context.Context, int64) ([]ticket.TicketUpdate, error)) *RepositoryUpdatesForOperationCall
- func (c *RepositoryUpdatesForOperationCall) Return(arg0 []ticket.TicketUpdate, arg1 error) *RepositoryUpdatesForOperationCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) BalancesForAccount ¶
func (m *MockRepository) BalancesForAccount(ctx context.Context, accountId int64, req ticket.BalanceRequest) ([]ticket.Balance, error)
BalancesForAccount mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) List ¶
func (m *MockRepository) List(ctx context.Context, ticketer string, limit, offset int64) ([]ticket.Ticket, error)
List mocks base method.
func (*MockRepository) Updates ¶
func (m *MockRepository) Updates(ctx context.Context, req ticket.UpdatesRequest) ([]ticket.TicketUpdate, error)
Updates mocks base method.
func (*MockRepository) UpdatesForOperation ¶
func (m *MockRepository) UpdatesForOperation(ctx context.Context, operationId int64) ([]ticket.TicketUpdate, error)
UpdatesForOperation mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) BalancesForAccount ¶
func (mr *MockRepositoryMockRecorder) BalancesForAccount(ctx, accountId, req any) *RepositoryBalancesForAccountCall
BalancesForAccount indicates an expected call of BalancesForAccount.
func (*MockRepositoryMockRecorder) List ¶
func (mr *MockRepositoryMockRecorder) List(ctx, ticketer, limit, offset any) *RepositoryListCall
List indicates an expected call of List.
func (*MockRepositoryMockRecorder) Updates ¶
func (mr *MockRepositoryMockRecorder) Updates(ctx, req any) *RepositoryUpdatesCall
Updates indicates an expected call of Updates.
func (*MockRepositoryMockRecorder) UpdatesForOperation ¶
func (mr *MockRepositoryMockRecorder) UpdatesForOperation(ctx, operationId any) *RepositoryUpdatesForOperationCall
UpdatesForOperation indicates an expected call of UpdatesForOperation.
type RepositoryBalancesForAccountCall ¶
RepositoryBalancesForAccountCall wrap *gomock.Call
func (*RepositoryBalancesForAccountCall) Do ¶
func (c *RepositoryBalancesForAccountCall) Do(f func(context.Context, int64, ticket.BalanceRequest) ([]ticket.Balance, error)) *RepositoryBalancesForAccountCall
Do rewrite *gomock.Call.Do
func (*RepositoryBalancesForAccountCall) DoAndReturn ¶
func (c *RepositoryBalancesForAccountCall) DoAndReturn(f func(context.Context, int64, ticket.BalanceRequest) ([]ticket.Balance, error)) *RepositoryBalancesForAccountCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryBalancesForAccountCall) Return ¶
func (c *RepositoryBalancesForAccountCall) Return(arg0 []ticket.Balance, arg1 error) *RepositoryBalancesForAccountCall
Return rewrite *gomock.Call.Return
type RepositoryListCall ¶
RepositoryListCall wrap *gomock.Call
func (*RepositoryListCall) Do ¶
func (c *RepositoryListCall) Do(f func(context.Context, string, int64, int64) ([]ticket.Ticket, error)) *RepositoryListCall
Do rewrite *gomock.Call.Do
func (*RepositoryListCall) DoAndReturn ¶
func (c *RepositoryListCall) DoAndReturn(f func(context.Context, string, int64, int64) ([]ticket.Ticket, error)) *RepositoryListCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryListCall) Return ¶
func (c *RepositoryListCall) Return(arg0 []ticket.Ticket, arg1 error) *RepositoryListCall
Return rewrite *gomock.Call.Return
type RepositoryUpdatesCall ¶
RepositoryUpdatesCall wrap *gomock.Call
func (*RepositoryUpdatesCall) Do ¶
func (c *RepositoryUpdatesCall) Do(f func(context.Context, ticket.UpdatesRequest) ([]ticket.TicketUpdate, error)) *RepositoryUpdatesCall
Do rewrite *gomock.Call.Do
func (*RepositoryUpdatesCall) DoAndReturn ¶
func (c *RepositoryUpdatesCall) DoAndReturn(f func(context.Context, ticket.UpdatesRequest) ([]ticket.TicketUpdate, error)) *RepositoryUpdatesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryUpdatesCall) Return ¶
func (c *RepositoryUpdatesCall) Return(arg0 []ticket.TicketUpdate, arg1 error) *RepositoryUpdatesCall
Return rewrite *gomock.Call.Return
type RepositoryUpdatesForOperationCall ¶
RepositoryUpdatesForOperationCall wrap *gomock.Call
func (*RepositoryUpdatesForOperationCall) Do ¶
func (c *RepositoryUpdatesForOperationCall) Do(f func(context.Context, int64) ([]ticket.TicketUpdate, error)) *RepositoryUpdatesForOperationCall
Do rewrite *gomock.Call.Do
func (*RepositoryUpdatesForOperationCall) DoAndReturn ¶
func (c *RepositoryUpdatesForOperationCall) DoAndReturn(f func(context.Context, int64) ([]ticket.TicketUpdate, error)) *RepositoryUpdatesForOperationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryUpdatesForOperationCall) Return ¶
func (c *RepositoryUpdatesForOperationCall) Return(arg0 []ticket.TicketUpdate, arg1 error) *RepositoryUpdatesForOperationCall
Return rewrite *gomock.Call.Return