testpoints

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TestPoints = `` /* 986-byte string literal not displayed */

Variables

View Source
var MethodTypes = MethodTypeMap{
	"Binary": Binary,
	"Unary":  Unary,
	"Custom": Custom,
}

MethodTypes for named constants inside templates

Functions

This section is empty.

Types

type InputSource

type InputSource interface {
	FixedInputs() []PointTuple
	RandomInput() PointTuple
}

type Method

type Method struct {
	Name string
	Type MethodType
}

type MethodType

type MethodType int
const (
	Binary MethodType = iota
	Unary
	Custom
)

type MethodTypeMap

type MethodTypeMap map[string]MethodType

type Point

type Point []string

type PointTuple

type PointTuple []Point

type TestPoint

type TestPoint struct {
	In  PointTuple // len(In) = number of arguments, eg 1 or 2
	Out []Point    // output of each method
}

func GenerateTestOutputs

func GenerateTestOutputs(in InputSource, sagePath string, sagePrefixArgs ...string) []TestPoint

Jump to

Keyboard shortcuts

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