test

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package test contains all the extra POGO that are needed to read the tests.json file that is processed by the WasmTester executor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestFolder

type TestFolder struct {
	Uses    map[string]*TestValue `json:"uses"`
	Modules []*TestModule         `json:"modules"`
}

func NewFolderTest

func NewFolderTest() *TestFolder

type TestFunc

type TestFunc struct {
	Name  string     `json:"name"`
	Tests []*TestRun `json:"tests"`
}

func NewFuncTest

func NewFuncTest() *TestFunc

type TestModule

type TestModule struct {
	File  string      `json:"file"`
	Funcs []*TestFunc `json:"funcs"`
}

func NewModuleTest

func NewModuleTest() *TestModule

type TestRun

type TestRun struct {
	Err string       `json:"err"`
	In  []*TestValue `json:"in"`
	Out []*TestValue `json:"out"`
}

func NewRunTest

func NewRunTest() *TestRun

type TestValue

type TestValue struct {
	sections.Variable
	Use string `json:"use"`
}

func NewValueTest

func NewValueTest() *TestValue

func (*TestValue) String

func (v *TestValue) String() string

Jump to

Keyboard shortcuts

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