servetest

package
v0.0.0-...-37abd50 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package servetest contains test logic shared between multiple frameworks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestRouteData

func TestRouteData(t *testing.T, rmap common.RouteMap, routeInputs RouteInputs)

TestRouteData is called from a framework-specific test to check that input types are correct. rmap and/or routeInputs may be nil, in which case the default values are used.

Types

type RouteInputs

type RouteInputs map[string][]string

RouteInputs defines the inputs used by each route.

func DefaultRouteInputs

func DefaultRouteInputs() RouteInputs

DefaultRouteInputs defines the inputs used by each route. Exported so that it can be modified if a framework deviates from the default.

Jump to

Keyboard shortcuts

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