Documentation ¶
Overview ¶
Package mockrepository is a generated GoMock package.
Index ¶
- type MockBattle
- func (m *MockBattle) CreateOrUpdate(ctx context.Context, battle *entity.BattleSession) error
- func (m *MockBattle) EXPECT() *MockBattleMockRecorder
- func (m *MockBattle) LoadByID(ctx context.Context, id uint) (*entity.BattleSession, error)
- func (m *MockBattle) LoadMany(ctx context.Context, predicate predicate.BattleSession) ([]*entity.BattleSession, error)
- func (m *MockBattle) RemoveByID(ctx context.Context, id uint) error
- type MockBattleMockRecorder
- func (mr *MockBattleMockRecorder) CreateOrUpdate(ctx, battle interface{}) *gomock.Call
- func (mr *MockBattleMockRecorder) LoadByID(ctx, id interface{}) *gomock.Call
- func (mr *MockBattleMockRecorder) LoadMany(ctx, predicate interface{}) *gomock.Call
- func (mr *MockBattleMockRecorder) RemoveByID(ctx, id interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBattle ¶
type MockBattle struct {
// contains filtered or unexported fields
}
MockBattle is a mock of Battle interface
func NewMockBattle ¶
func NewMockBattle(ctrl *gomock.Controller) *MockBattle
NewMockBattle creates a new mock instance
func (*MockBattle) CreateOrUpdate ¶
func (m *MockBattle) CreateOrUpdate(ctx context.Context, battle *entity.BattleSession) error
CreateOrUpdate mocks base method
func (*MockBattle) EXPECT ¶
func (m *MockBattle) EXPECT() *MockBattleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBattle) LoadByID ¶
func (m *MockBattle) LoadByID(ctx context.Context, id uint) (*entity.BattleSession, error)
LoadByID mocks base method
func (*MockBattle) LoadMany ¶
func (m *MockBattle) LoadMany(ctx context.Context, predicate predicate.BattleSession) ([]*entity.BattleSession, error)
LoadMany mocks base method
func (*MockBattle) RemoveByID ¶
func (m *MockBattle) RemoveByID(ctx context.Context, id uint) error
RemoveByID mocks base method
type MockBattleMockRecorder ¶
type MockBattleMockRecorder struct {
// contains filtered or unexported fields
}
MockBattleMockRecorder is the mock recorder for MockBattle
func (*MockBattleMockRecorder) CreateOrUpdate ¶
func (mr *MockBattleMockRecorder) CreateOrUpdate(ctx, battle interface{}) *gomock.Call
CreateOrUpdate indicates an expected call of CreateOrUpdate
func (*MockBattleMockRecorder) LoadByID ¶
func (mr *MockBattleMockRecorder) LoadByID(ctx, id interface{}) *gomock.Call
LoadByID indicates an expected call of LoadByID
func (*MockBattleMockRecorder) LoadMany ¶
func (mr *MockBattleMockRecorder) LoadMany(ctx, predicate interface{}) *gomock.Call
LoadMany indicates an expected call of LoadMany
func (*MockBattleMockRecorder) RemoveByID ¶
func (mr *MockBattleMockRecorder) RemoveByID(ctx, id interface{}) *gomock.Call
RemoveByID indicates an expected call of RemoveByID
Click to show internal directories.
Click to hide internal directories.