116 lines
4.3 KiB
Go
116 lines
4.3 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: galaxy/gamemaster/internal/ports (interfaces: PlayerMappingStore)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -destination=../adapters/mocks/mock_playermappingstore.go -package=mocks galaxy/gamemaster/internal/ports PlayerMappingStore
|
|
//
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
playermapping "galaxy/gamemaster/internal/domain/playermapping"
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockPlayerMappingStore is a mock of PlayerMappingStore interface.
|
|
type MockPlayerMappingStore struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockPlayerMappingStoreMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockPlayerMappingStoreMockRecorder is the mock recorder for MockPlayerMappingStore.
|
|
type MockPlayerMappingStoreMockRecorder struct {
|
|
mock *MockPlayerMappingStore
|
|
}
|
|
|
|
// NewMockPlayerMappingStore creates a new mock instance.
|
|
func NewMockPlayerMappingStore(ctrl *gomock.Controller) *MockPlayerMappingStore {
|
|
mock := &MockPlayerMappingStore{ctrl: ctrl}
|
|
mock.recorder = &MockPlayerMappingStoreMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockPlayerMappingStore) EXPECT() *MockPlayerMappingStoreMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// BulkInsert mocks base method.
|
|
func (m *MockPlayerMappingStore) BulkInsert(ctx context.Context, records []playermapping.PlayerMapping) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "BulkInsert", ctx, records)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// BulkInsert indicates an expected call of BulkInsert.
|
|
func (mr *MockPlayerMappingStoreMockRecorder) BulkInsert(ctx, records any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BulkInsert", reflect.TypeOf((*MockPlayerMappingStore)(nil).BulkInsert), ctx, records)
|
|
}
|
|
|
|
// DeleteByGame mocks base method.
|
|
func (m *MockPlayerMappingStore) DeleteByGame(ctx context.Context, gameID string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "DeleteByGame", ctx, gameID)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// DeleteByGame indicates an expected call of DeleteByGame.
|
|
func (mr *MockPlayerMappingStoreMockRecorder) DeleteByGame(ctx, gameID any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByGame", reflect.TypeOf((*MockPlayerMappingStore)(nil).DeleteByGame), ctx, gameID)
|
|
}
|
|
|
|
// Get mocks base method.
|
|
func (m *MockPlayerMappingStore) Get(ctx context.Context, gameID, userID string) (playermapping.PlayerMapping, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Get", ctx, gameID, userID)
|
|
ret0, _ := ret[0].(playermapping.PlayerMapping)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Get indicates an expected call of Get.
|
|
func (mr *MockPlayerMappingStoreMockRecorder) Get(ctx, gameID, userID any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPlayerMappingStore)(nil).Get), ctx, gameID, userID)
|
|
}
|
|
|
|
// GetByRace mocks base method.
|
|
func (m *MockPlayerMappingStore) GetByRace(ctx context.Context, gameID, raceName string) (playermapping.PlayerMapping, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetByRace", ctx, gameID, raceName)
|
|
ret0, _ := ret[0].(playermapping.PlayerMapping)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetByRace indicates an expected call of GetByRace.
|
|
func (mr *MockPlayerMappingStoreMockRecorder) GetByRace(ctx, gameID, raceName any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByRace", reflect.TypeOf((*MockPlayerMappingStore)(nil).GetByRace), ctx, gameID, raceName)
|
|
}
|
|
|
|
// ListByGame mocks base method.
|
|
func (m *MockPlayerMappingStore) ListByGame(ctx context.Context, gameID string) ([]playermapping.PlayerMapping, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ListByGame", ctx, gameID)
|
|
ret0, _ := ret[0].([]playermapping.PlayerMapping)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ListByGame indicates an expected call of ListByGame.
|
|
func (mr *MockPlayerMappingStoreMockRecorder) ListByGame(ctx, gameID any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByGame", reflect.TypeOf((*MockPlayerMappingStore)(nil).ListByGame), ctx, gameID)
|
|
}
|