routertestsuite

package
v0.0.0-...-ecdd364 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestSuite

type TestSuite struct{}

TestSuite performs standard tests.

func New

func New() *TestSuite

New returns a router test suite.

func (*TestSuite) Run

func (ts *TestSuite) Run(t *testing.T, mux func() ambient.AppRouter)

Run all the tests.

func (*TestSuite) Test400

func (ts *TestSuite) Test400(t *testing.T, mux ambient.AppRouter)

Test400 .

func (*TestSuite) Test404

func (ts *TestSuite) Test404(t *testing.T, mux ambient.AppRouter)

Test404 .

func (*TestSuite) Test500NoError

func (ts *TestSuite) Test500NoError(t *testing.T, mux ambient.AppRouter)

Test500NoError .

func (*TestSuite) Test500WithError

func (ts *TestSuite) Test500WithError(t *testing.T, mux ambient.AppRouter)

Test500WithError .

func (*TestSuite) TestBadRequest

func (ts *TestSuite) TestBadRequest(t *testing.T, mux ambient.AppRouter)

TestBadRequest .

func (*TestSuite) TestDelete

func (ts *TestSuite) TestDelete(t *testing.T, mux ambient.AppRouter)

TestDelete .

func (*TestSuite) TestGet

func (ts *TestSuite) TestGet(t *testing.T, mux ambient.AppRouter)

TestGet .

func (*TestSuite) TestHead

func (ts *TestSuite) TestHead(t *testing.T, mux ambient.AppRouter)

TestHead .

func (*TestSuite) TestInstance

func (ts *TestSuite) TestInstance(t *testing.T, mux ambient.AppRouter)

TestInstance .

func (*TestSuite) TestNotFound

func (ts *TestSuite) TestNotFound(t *testing.T, mux ambient.AppRouter)

TestNotFound .

func (*TestSuite) TestOptions

func (ts *TestSuite) TestOptions(t *testing.T, mux ambient.AppRouter)

TestOptions .

func (*TestSuite) TestParams

func (ts *TestSuite) TestParams(t *testing.T, mux ambient.AppRouter)

TestParams .

func (*TestSuite) TestPatch

func (ts *TestSuite) TestPatch(t *testing.T, mux ambient.AppRouter)

TestPatch .

func (*TestSuite) TestPostForm

func (ts *TestSuite) TestPostForm(t *testing.T, mux ambient.AppRouter)

TestPostForm .

func (*TestSuite) TestPostJSON

func (ts *TestSuite) TestPostJSON(t *testing.T, mux ambient.AppRouter)

TestPostJSON .

func (*TestSuite) TestPut

func (ts *TestSuite) TestPut(t *testing.T, mux ambient.AppRouter)

TestPut .

Jump to

Keyboard shortcuts

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