testhelper

package
v0.0.0-...-8450a52 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrInternalServer

func ErrInternalServer() jsonapi.Errors

func GenerateTempTestFiles

func GenerateTempTestFiles(path, content, fileName string, mode os.FileMode)

func PerformRequest

func PerformRequest(r http.Handler, method, path string, body io.Reader, reqModifiers ...func(req *http.Request)) *httptest.ResponseRecorder

func RemoveTempTestFiles

func RemoveTempTestFiles(path string)

Types

type MockErrorIoReader

type MockErrorIoReader struct {
}

func (MockErrorIoReader) Read

func (m MockErrorIoReader) Read(x []byte) (int, error)

Jump to

Keyboard shortcuts

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