modules

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module interface {
	Name() string
	GetLoader(script *script.Script) lua.LGFunction
	Stop() error
}

type ModuleMock

type ModuleMock struct {
	mock.Mock
}

func (*ModuleMock) GetLoader

func (m *ModuleMock) GetLoader(script *script.Script) lua.LGFunction

func (*ModuleMock) Name

func (m *ModuleMock) Name() string

func (*ModuleMock) Stop

func (m *ModuleMock) Stop() error

type ModuleTest added in v0.4.0

type ModuleTest interface {
	Name() string
	GetLoader(script *script.Script) lua.LGFunction
	Result() ([]TestResult, error)
	Clean()
}

type TestResult added in v0.4.0

type TestResult struct {
	ScriptName string `json:"script"`
	ModuleName string `json:"module"`
	Message    string `json:"message"`
	Ok         bool   `json:"ok"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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