mocks

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContextMock

func NewContextMock(method, endpoint, body, path string, values ...string) echo.Context

func NewContextMockResponse

func NewContextMockResponse(statusCode int, errorMessage string) error

func NewCreatorMock

func NewCreatorMock(fail bool, errorMessage string) creatorMock

func NewDeleterMock

func NewDeleterMock(fail bool, errorMessage string) deleterMock

func NewExecutorMock

func NewExecutorMock(fail bool, errorMessage string) executorMock

func NewMockHTTP added in v0.2.0

func NewMockHTTP(fail bool) mockHTTP

func NewMockHTTPResponse added in v0.2.0

func NewMockHTTPResponse() *http.Response

func NewReaderMock

func NewReaderMock(fail bool, errorMessage string) readerMock

func NewUpdaterMock

func NewUpdaterMock(fail bool, errorMessage string) updaterMock

Types

This section is empty.

Jump to

Keyboard shortcuts

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