routest

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 6 Imported by: 0

README

routest

Quicker testing of http routes in go. Works with the stdlibs testing pkg. A work in progress.

usage

See routest_test.go for now.

license

MIT

Documentation

Overview

Package routest provides a quick and easy way of testing your http api

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test

func Test(t *testing.T, data []Data)

Test runs assertion tests on data and reports to t

Types

type Data

type Data struct {
	Name         string
	RequestBody  io.Reader
	Handler      http.HandlerFunc
	Status       int
	ResponseBody []byte
}

Jump to

Keyboard shortcuts

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