test_helpers

package
v2.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointHandler

type EndpointHandler struct {
	// contains filtered or unexported fields
}

func NewEndpointHandler

func NewEndpointHandler() *EndpointHandler

func (*EndpointHandler) GetFakeHandler

func (h *EndpointHandler) GetFakeHandler(endpoint string) *fakes.FakeHandler

func (*EndpointHandler) ServeHTTP

func (h *EndpointHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*EndpointHandler) StubEndpoint

func (h *EndpointHandler) StubEndpoint(endpoint string, handler *fakes.FakeHandler)

func (*EndpointHandler) StubEndpointWithStatus

func (h *EndpointHandler) StubEndpointWithStatus(endpoint string, statusCode int, responseText ...string)

Jump to

Keyboard shortcuts

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