web

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestGetByIdHandler

func TestGetByIdHandler(handler http.Handler, id string) *httptest.ResponseRecorder

func TestPostHandler

func TestPostHandler(handler http.Handler, payload string) *httptest.ResponseRecorder

func TestPutHandler

func TestPutHandler(handler http.Handler, id string, payload string) *httptest.ResponseRecorder

Types

type TestTable

type TestTable struct {
	Uid string   // model id (if any)
	Jsn string   // json payload
	Erc int      // expected response code
	Erm []string // expected error messages
}

Jump to

Keyboard shortcuts

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