gdtasks

package
v0.0.0-...-15b5fa4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Suite

type Suite struct {
	functional.GameServerSuite

	TaskManager      *gdaemonscheduler.TaskManager
	GDTaskRepository *mocks.GDTaskRepository
	ServerRepository *mocks.ServerRepository
	Executor         contracts.Executor
	ProcessManager   contracts.ProcessManager
	Cache            contracts.Cache
	Cfg              *config.Config

	WorkPath string
}

func (*Suite) AssertFileContents

func (suite *Suite) AssertFileContents(file string, expectedContents []byte)

func (*Suite) AssertGDTaskExist

func (suite *Suite) AssertGDTaskExist(task *domain.GDTask)

func (*Suite) GivenGDTaskWithCommand

func (suite *Suite) GivenGDTaskWithCommand(cmd string) *domain.GDTask

func (*Suite) GivenGDTaskWithIDForServer

func (suite *Suite) GivenGDTaskWithIDForServer(id int, server *domain.Server) *domain.GDTask

func (*Suite) GivenSequenceGDTaskForServer

func (suite *Suite) GivenSequenceGDTaskForServer(server *domain.Server) []*domain.GDTask

func (*Suite) RunTaskManager

func (suite *Suite) RunTaskManager(timeout time.Duration)

func (*Suite) RunTaskManagerUntilTasksCompleted

func (suite *Suite) RunTaskManagerUntilTasksCompleted(tasks []*domain.GDTask)

func (*Suite) SetupSuite

func (suite *Suite) SetupSuite()

func (*Suite) SetupTest

func (suite *Suite) SetupTest()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL