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.
Click to show internal directories.
Click to hide internal directories.