testing

package
v0.0.0-...-7c51b95 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Application

func Application(configPath string, providers ...contract.Provider) contract.Application

func ApplicationDefault

func ApplicationDefault(providers ...contract.Provider) contract.Application

func NewMockResponseWriter

func NewMockResponseWriter() http.ResponseWriter

Types

type MockRequest

type MockRequest struct {
	Request *http.Request
}

func NewMockRequest

func NewMockRequest(method, url, body string) *MockRequest

type MockResponseWriter

type MockResponseWriter struct {
	//mock.Mock
	Bytes []byte

	Headers http.Header
	// contains filtered or unexported fields
}

func (*MockResponseWriter) Header

func (m *MockResponseWriter) Header() http.Header

func (*MockResponseWriter) StatusCode

func (m *MockResponseWriter) StatusCode() int

func (*MockResponseWriter) Write

func (m *MockResponseWriter) Write(p []byte) (int, error)

func (*MockResponseWriter) WriteHeader

func (m *MockResponseWriter) WriteHeader(statusCode int)

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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