Documentation ¶
Overview ¶
Package mock_repository is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) CreateCompetition(name, competitionType string, externalEntityId *string) (*models.Competition, error)
- func (m *MockRepository) CreateTeam(teamName string, externalEntityId, imageUrl *string) (*models.Team, error)
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) ListCompetitions(limit, offset int) ([]*models.Competition, error)
- func (m *MockRepository) ListTeams(limit, offset int) ([]*models.Team, error)
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) CreateCompetition(name, competitionType, externalEntityId interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) CreateTeam(teamName, externalEntityId, imageUrl interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListCompetitions(limit, offset interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListTeams(limit, offset interface{}) *gomock.Call
- type MockrealWorldRepository
- func (m *MockrealWorldRepository) CreateCompetition(name, competitionType string, externalEntityId *string) (*models.Competition, error)
- func (m *MockrealWorldRepository) CreateTeam(teamName string, externalEntityId, imageUrl *string) (*models.Team, error)
- func (m *MockrealWorldRepository) EXPECT() *MockrealWorldRepositoryMockRecorder
- func (m *MockrealWorldRepository) ListCompetitions(limit, offset int) ([]*models.Competition, error)
- func (m *MockrealWorldRepository) ListTeams(limit, offset int) ([]*models.Team, error)
- type MockrealWorldRepositoryMockRecorder
- func (mr *MockrealWorldRepositoryMockRecorder) CreateCompetition(name, competitionType, externalEntityId interface{}) *gomock.Call
- func (mr *MockrealWorldRepositoryMockRecorder) CreateTeam(teamName, externalEntityId, imageUrl interface{}) *gomock.Call
- func (mr *MockrealWorldRepositoryMockRecorder) ListCompetitions(limit, offset interface{}) *gomock.Call
- func (mr *MockrealWorldRepositoryMockRecorder) ListTeams(limit, offset interface{}) *gomock.Call
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) CreateCompetition ¶
func (m *MockRepository) CreateCompetition(name, competitionType string, externalEntityId *string) (*models.Competition, error)
CreateCompetition mocks base method
func (*MockRepository) CreateTeam ¶
func (m *MockRepository) CreateTeam(teamName string, externalEntityId, imageUrl *string) (*models.Team, error)
CreateTeam 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) ListCompetitions ¶
func (m *MockRepository) ListCompetitions(limit, offset int) ([]*models.Competition, error)
ListCompetitions mocks base method
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository
func (*MockRepositoryMockRecorder) CreateCompetition ¶
func (mr *MockRepositoryMockRecorder) CreateCompetition(name, competitionType, externalEntityId interface{}) *gomock.Call
CreateCompetition indicates an expected call of CreateCompetition
func (*MockRepositoryMockRecorder) CreateTeam ¶
func (mr *MockRepositoryMockRecorder) CreateTeam(teamName, externalEntityId, imageUrl interface{}) *gomock.Call
CreateTeam indicates an expected call of CreateTeam
func (*MockRepositoryMockRecorder) ListCompetitions ¶
func (mr *MockRepositoryMockRecorder) ListCompetitions(limit, offset interface{}) *gomock.Call
ListCompetitions indicates an expected call of ListCompetitions
func (*MockRepositoryMockRecorder) ListTeams ¶
func (mr *MockRepositoryMockRecorder) ListTeams(limit, offset interface{}) *gomock.Call
ListTeams indicates an expected call of ListTeams
type MockrealWorldRepository ¶
type MockrealWorldRepository struct {
// contains filtered or unexported fields
}
MockrealWorldRepository is a mock of realWorldRepository interface
func NewMockrealWorldRepository ¶
func NewMockrealWorldRepository(ctrl *gomock.Controller) *MockrealWorldRepository
NewMockrealWorldRepository creates a new mock instance
func (*MockrealWorldRepository) CreateCompetition ¶
func (m *MockrealWorldRepository) CreateCompetition(name, competitionType string, externalEntityId *string) (*models.Competition, error)
CreateCompetition mocks base method
func (*MockrealWorldRepository) CreateTeam ¶
func (m *MockrealWorldRepository) CreateTeam(teamName string, externalEntityId, imageUrl *string) (*models.Team, error)
CreateTeam mocks base method
func (*MockrealWorldRepository) EXPECT ¶
func (m *MockrealWorldRepository) EXPECT() *MockrealWorldRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockrealWorldRepository) ListCompetitions ¶
func (m *MockrealWorldRepository) ListCompetitions(limit, offset int) ([]*models.Competition, error)
ListCompetitions mocks base method
type MockrealWorldRepositoryMockRecorder ¶
type MockrealWorldRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockrealWorldRepositoryMockRecorder is the mock recorder for MockrealWorldRepository
func (*MockrealWorldRepositoryMockRecorder) CreateCompetition ¶
func (mr *MockrealWorldRepositoryMockRecorder) CreateCompetition(name, competitionType, externalEntityId interface{}) *gomock.Call
CreateCompetition indicates an expected call of CreateCompetition
func (*MockrealWorldRepositoryMockRecorder) CreateTeam ¶
func (mr *MockrealWorldRepositoryMockRecorder) CreateTeam(teamName, externalEntityId, imageUrl interface{}) *gomock.Call
CreateTeam indicates an expected call of CreateTeam
func (*MockrealWorldRepositoryMockRecorder) ListCompetitions ¶
func (mr *MockrealWorldRepositoryMockRecorder) ListCompetitions(limit, offset interface{}) *gomock.Call
ListCompetitions indicates an expected call of ListCompetitions
func (*MockrealWorldRepositoryMockRecorder) ListTeams ¶
func (mr *MockrealWorldRepositoryMockRecorder) ListTeams(limit, offset interface{}) *gomock.Call
ListTeams indicates an expected call of ListTeams