vmjsonintegrationtest

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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

Run will start the testing process

func (*ScenariosTestBuilder) WithConsoleExecutorLogs

func (mtb *ScenariosTestBuilder) WithConsoleExecutorLogs() *ScenariosTestBuilder

WithConsoleExecutorLogs sets a custom logger

func (*ScenariosTestBuilder) WithEnableEpochsHandler

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

func (mtb *ScenariosTestBuilder) WithVMType(overrideVMType []byte) *ScenariosTestBuilder

WithVMType overrides the default VM type

Jump to

Keyboard shortcuts

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