Documentation ¶
Index ¶
Constants ¶
View Source
const (
// AnyValue represents const for any value in tests
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
}
ModuleMock represents module mock
func New ¶
func New(name string, methods []string, logger *zap.Logger) *ModuleMock
New creates new ModuleMock
func (*ModuleMock) GetLoader ¶
func (m *ModuleMock) GetLoader(_ modules.Job) lua.LGFunction
GetLoader returns lua loader
func (*ModuleMock) Result ¶
func (m *ModuleMock) Result() ([]modules.TestResult, error)
Result returns test results
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 }
Registry is an interface for registry
Click to show internal directories.
Click to hide internal directories.