Documentation ¶
Index ¶
Constants ¶
View Source
const (
AnyValue = "__TEST_ANY_VALUE__"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleMock ¶
type ModuleMock struct {
// contains filtered or unexported fields
}
func (*ModuleMock) Clean ¶
func (m *ModuleMock) Clean()
func (*ModuleMock) GetLoader ¶
func (m *ModuleMock) GetLoader(_ *script.Script) lua.LGFunction
func (*ModuleMock) Name ¶
func (m *ModuleMock) Name() string
func (*ModuleMock) Result ¶
func (m *ModuleMock) Result() ([]modules.TestResult, error)
func (*ModuleMock) Stop ¶
func (m *ModuleMock) Stop() error
type Registry ¶ added in v0.5.0
type Registry interface { Clean() Register(AnyValue, method string, callArgs, retArgs []lua.LValue) error Response(AnyValue, method string, args []lua.LValue) ([]lua.LValue, error) AddAssert(method string, args []lua.LValue, called bool) error AddCall(method string, args []lua.LValue) error Result() []modules.TestResult }
Click to show internal directories.
Click to hide internal directories.