apitester

package module
v0.0.0-...-cde896e Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 7 Imported by: 0

README

golang-api-testing

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTest

func RunTest(testCase *TestCase, t *testing.T) error

Types

type TestCase

type TestCase struct {
	TestName    string
	TestDetail  string
	Route       string
	Method      string
	HandlerFunc func(w http.ResponseWriter, r *http.Request)
	StatusCode  int
	AvoidKey    []string
	RequestMap  map[string]interface{}
	ResponseMap map[string]interface{}
	TypeCheck   map[string]interface{} //assign key and sample type
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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