apitests

package
v0.0.0-...-822ec7e Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, router *mux.Router, testCases []Test)

Run a set of test cases against mux HTTP router

Types

type Test

type Test struct {
	Name           string
	URL            string
	Method         string
	Body           string
	CheckBody      string
	CheckBodyCount int
	CheckStatus    int
}

Test holds parameters for an API test

Jump to

Keyboard shortcuts

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