feat: gamemaster

This commit is contained in:
Ilia Denisov
2026-05-03 07:59:03 +02:00
committed by GitHub
parent a7cee15115
commit 3e2622757e
229 changed files with 41521 additions and 1098 deletions
@@ -0,0 +1,70 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: galaxy/gamemaster/internal/ports (interfaces: LobbyEventsPublisher)
//
// Generated by this command:
//
// mockgen -destination=../adapters/mocks/mock_lobbyeventspublisher.go -package=mocks galaxy/gamemaster/internal/ports LobbyEventsPublisher
//
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
ports "galaxy/gamemaster/internal/ports"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockLobbyEventsPublisher is a mock of LobbyEventsPublisher interface.
type MockLobbyEventsPublisher struct {
ctrl *gomock.Controller
recorder *MockLobbyEventsPublisherMockRecorder
isgomock struct{}
}
// MockLobbyEventsPublisherMockRecorder is the mock recorder for MockLobbyEventsPublisher.
type MockLobbyEventsPublisherMockRecorder struct {
mock *MockLobbyEventsPublisher
}
// NewMockLobbyEventsPublisher creates a new mock instance.
func NewMockLobbyEventsPublisher(ctrl *gomock.Controller) *MockLobbyEventsPublisher {
mock := &MockLobbyEventsPublisher{ctrl: ctrl}
mock.recorder = &MockLobbyEventsPublisherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockLobbyEventsPublisher) EXPECT() *MockLobbyEventsPublisherMockRecorder {
return m.recorder
}
// PublishGameFinished mocks base method.
func (m *MockLobbyEventsPublisher) PublishGameFinished(ctx context.Context, msg ports.GameFinished) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PublishGameFinished", ctx, msg)
ret0, _ := ret[0].(error)
return ret0
}
// PublishGameFinished indicates an expected call of PublishGameFinished.
func (mr *MockLobbyEventsPublisherMockRecorder) PublishGameFinished(ctx, msg any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublishGameFinished", reflect.TypeOf((*MockLobbyEventsPublisher)(nil).PublishGameFinished), ctx, msg)
}
// PublishSnapshotUpdate mocks base method.
func (m *MockLobbyEventsPublisher) PublishSnapshotUpdate(ctx context.Context, msg ports.RuntimeSnapshotUpdate) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PublishSnapshotUpdate", ctx, msg)
ret0, _ := ret[0].(error)
return ret0
}
// PublishSnapshotUpdate indicates an expected call of PublishSnapshotUpdate.
func (mr *MockLobbyEventsPublisherMockRecorder) PublishSnapshotUpdate(ctx, msg any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublishSnapshotUpdate", reflect.TypeOf((*MockLobbyEventsPublisher)(nil).PublishSnapshotUpdate), ctx, msg)
}