Documentation ¶
Index ¶
- type ScenariosTestBuilder
- func (mtb *ScenariosTestBuilder) CheckLog(expectedLogs string) *ScenariosTestBuilder
- func (mtb *ScenariosTestBuilder) CheckNoError() *ScenariosTestBuilder
- func (mtb *ScenariosTestBuilder) Exclude(path string) *ScenariosTestBuilder
- func (mtb *ScenariosTestBuilder) ExtractLog() string
- func (mtb *ScenariosTestBuilder) File(fileName string) *ScenariosTestBuilder
- func (mtb *ScenariosTestBuilder) Folder(folder string) *ScenariosTestBuilder
- func (mtb *ScenariosTestBuilder) RequireError(expectedErrorMsg string) *ScenariosTestBuilder
- func (mtb *ScenariosTestBuilder) Run() *ScenariosTestBuilder
- func (mtb *ScenariosTestBuilder) WithConsoleExecutorLogs() *ScenariosTestBuilder
- func (mtb *ScenariosTestBuilder) WithEnableEpochsHandler(enableEpochsHandler vmcommon.EnableEpochsHandler) *ScenariosTestBuilder
- func (mtb *ScenariosTestBuilder) WithExecutorFactory(executorFactory executor.ExecutorAbstractFactory) *ScenariosTestBuilder
- func (mtb *ScenariosTestBuilder) WithExecutorLogs() *ScenariosTestBuilder
- func (mtb *ScenariosTestBuilder) WithVMType(overrideVMType []byte) *ScenariosTestBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScenariosTestBuilder ¶
type ScenariosTestBuilder struct {
// contains filtered or unexported fields
}
ScenariosTestBuilder defines the Scenarios builder component
func ScenariosTest ¶
func ScenariosTest(t *testing.T) *ScenariosTestBuilder
ScenariosTest will create a new ScenariosTestBuilder instance
func (*ScenariosTestBuilder) CheckLog ¶
func (mtb *ScenariosTestBuilder) CheckLog(expectedLogs string) *ScenariosTestBuilder
CheckLog will check the containing error
func (*ScenariosTestBuilder) CheckNoError ¶
func (mtb *ScenariosTestBuilder) CheckNoError() *ScenariosTestBuilder
CheckNoError does an assert for the containing error
func (*ScenariosTestBuilder) Exclude ¶
func (mtb *ScenariosTestBuilder) Exclude(path string) *ScenariosTestBuilder
Exclude sets the exclusion path
func (*ScenariosTestBuilder) ExtractLog ¶
func (mtb *ScenariosTestBuilder) ExtractLog() string
ExtractLog returns the string generated by the logger
func (*ScenariosTestBuilder) File ¶
func (mtb *ScenariosTestBuilder) File(fileName string) *ScenariosTestBuilder
File sets the file
func (*ScenariosTestBuilder) Folder ¶
func (mtb *ScenariosTestBuilder) Folder(folder string) *ScenariosTestBuilder
Folder sets the folder
func (*ScenariosTestBuilder) RequireError ¶
func (mtb *ScenariosTestBuilder) RequireError(expectedErrorMsg string) *ScenariosTestBuilder
RequireError does an assert for the containing error
func (*ScenariosTestBuilder) Run ¶
func (mtb *ScenariosTestBuilder) Run() *ScenariosTestBuilder
Run will start the testing process
func (*ScenariosTestBuilder) WithConsoleExecutorLogs ¶
func (mtb *ScenariosTestBuilder) WithConsoleExecutorLogs() *ScenariosTestBuilder
WithConsoleExecutorLogs sets a custom logger
func (*ScenariosTestBuilder) WithEnableEpochsHandler ¶ added in v1.5.8
func (mtb *ScenariosTestBuilder) WithEnableEpochsHandler(enableEpochsHandler vmcommon.EnableEpochsHandler) *ScenariosTestBuilder
WithEnableEpochsHandler overrides the epoch flags
func (*ScenariosTestBuilder) WithExecutorFactory ¶
func (mtb *ScenariosTestBuilder) WithExecutorFactory(executorFactory executor.ExecutorAbstractFactory) *ScenariosTestBuilder
WithExecutorFactory sets an executor factory
func (*ScenariosTestBuilder) WithExecutorLogs ¶
func (mtb *ScenariosTestBuilder) WithExecutorLogs() *ScenariosTestBuilder
WithExecutorLogs sets a StringLogger
func (*ScenariosTestBuilder) WithVMType ¶ added in v1.5.27
func (mtb *ScenariosTestBuilder) WithVMType(overrideVMType []byte) *ScenariosTestBuilder
WithVMType overrides the default VM type