req2logtests

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRequest

func GenerateRequest(requestHeaders map[string]string, extraQueryParams []string, extraHeaderParams map[string]string) *http.Request

func JSONTestSuite

func JSONTestSuite(t *testing.T, loggerProvider func(w io.Writer, params ...req2log.LoggerCreatorParam) req2log.Logger)

Types

type TestCase

type TestCase struct {
	Name                  string
	ExtraHeaderParams     map[string]string
	ExtraQueryParams      []string
	SafeHeaderParams      []string
	SafeQueryParams       []string
	ForbiddenHeaderParams []string
	JSONMatcher           objmatcher.MapMatcher
}

func TestCases

func TestCases() []TestCase

Jump to

Keyboard shortcuts

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