testcontroller

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAllJSONTestsInDirectory added in v0.0.6

func RunAllJSONTestsInDirectory(
	generalTestPath string,
	specificTestPath string,
	allowedSuffix string,
	excludedFilePatterns []string,
	testExecutor VMTestExecutor) error

RunAllJSONTestsInDirectory walks directory, parses and prepares all json tests, then calls testExecutor for each of them.

func RunSingleJSONTest added in v0.0.7

func RunSingleJSONTest(testFilePath string, testExecutor VMTestExecutor) error

RunSingleJSONTest parses and prepares test, then calls testCallback.

Types

type VMTestExecutor

type VMTestExecutor interface {
	// ProcessCode takes the code as it is represented in the test, and converts it to something the VM can execute.
	ProcessCode(testPath string, value string) (string, error)

	// Run executes the test and checks if it passed. Failure is signaled by returning an error.
	Run(*ij.Test) error
}

VMTestExecutor describes a component that can run a VM test.

Jump to

Keyboard shortcuts

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