71 lines
2.4 KiB
Go
71 lines
2.4 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: galaxy/lobby/internal/ports (interfaces: RuntimeManager)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -destination=../adapters/mocks/mock_runtimemanager.go -package=mocks galaxy/lobby/internal/ports RuntimeManager
|
|
//
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
ports "galaxy/lobby/internal/ports"
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockRuntimeManager is a mock of RuntimeManager interface.
|
|
type MockRuntimeManager struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockRuntimeManagerMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockRuntimeManagerMockRecorder is the mock recorder for MockRuntimeManager.
|
|
type MockRuntimeManagerMockRecorder struct {
|
|
mock *MockRuntimeManager
|
|
}
|
|
|
|
// NewMockRuntimeManager creates a new mock instance.
|
|
func NewMockRuntimeManager(ctrl *gomock.Controller) *MockRuntimeManager {
|
|
mock := &MockRuntimeManager{ctrl: ctrl}
|
|
mock.recorder = &MockRuntimeManagerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockRuntimeManager) EXPECT() *MockRuntimeManagerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// PublishStartJob mocks base method.
|
|
func (m *MockRuntimeManager) PublishStartJob(ctx context.Context, gameID, imageRef string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PublishStartJob", ctx, gameID, imageRef)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// PublishStartJob indicates an expected call of PublishStartJob.
|
|
func (mr *MockRuntimeManagerMockRecorder) PublishStartJob(ctx, gameID, imageRef any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublishStartJob", reflect.TypeOf((*MockRuntimeManager)(nil).PublishStartJob), ctx, gameID, imageRef)
|
|
}
|
|
|
|
// PublishStopJob mocks base method.
|
|
func (m *MockRuntimeManager) PublishStopJob(ctx context.Context, gameID string, reason ports.StopReason) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PublishStopJob", ctx, gameID, reason)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// PublishStopJob indicates an expected call of PublishStopJob.
|
|
func (mr *MockRuntimeManagerMockRecorder) PublishStopJob(ctx, gameID, reason any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublishStopJob", reflect.TypeOf((*MockRuntimeManager)(nil).PublishStopJob), ctx, gameID, reason)
|
|
}
|