testexecutor

package
v1.5.19 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package testexecutor provides with a default executor for testing

Index

Constants

This section is empty.

Variables

View Source
var EnvVMEXECUTOR = "VMEXECUTOR"

EnvVMEXECUTOR is the name of the environment variable that controls the default test executor

View Source
var ExecWasmer1 = "wasmer1"

ExecWasmer1 is the value of the EnvVMEXECUTOR variable which selects Wasmer 1

View Source
var ExecWasmer2 = "wasmer2"

ExecWasmer2 is the value of the EnvVMEXECUTOR variable which selects Wasmer 2

Functions

func IsWasmer1Allowed

func IsWasmer1Allowed() bool

IsWasmer1Allowed returns true if the default test executor is Wasmer 1. If the default test executor is Wasmer 2, it is not allowed to instantiate a Wasmer 1 executor due to low-level conflicts between Wasmer 1 and 2.

func NewDefaultTestExecutorFactory

func NewDefaultTestExecutorFactory(tb testing.TB) executor.ExecutorAbstractFactory

NewDefaultTestExecutorFactory instantiates an executor factory based on the $VMEXECUTOR environment variable

Types

This section is empty.

Jump to

Keyboard shortcuts

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