testcases

package
v0.0.0-...-e674af2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCase

type TestCase struct {
	Name          string
	DisableDebug  bool
	ReqTemplate   interface{}
	FormReqParser bool
	RespTemplate  interface{}
	Request       interface{}
	Handler       mbd.Handler
	Providers     []mbd.Provider
	Checkers      []mbd.Checker
	Assertion     func(require.TestingT, int, map[string][]string, interface{})
}

TestCase describes a test case.

func GetTestCase

func GetTestCase(name string) *TestCase

GetTestCase returns the TestCase with the given name, panics if not found.

func GetTestCases

func GetTestCases() []*TestCase

GetTestCases returns a list of test cases, which can be run locally in-memory, or against a test remote Lambda deployment.

type TestRequest

type TestRequest struct {
	Value string `json:"value" schema:"value"`
}

TestRequest is a request for test functions.

type TestResponse

type TestResponse struct {
	Value string `json:"value"`
}

TestResponse is a response for test functions.

Jump to

Keyboard shortcuts

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