mocks

package
v0.0.0-...-3e220e4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: GPL-3.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 HTTPClientMock

type HTTPClientMock struct {
	mock.Mock
	utils.HTTPClientInterface
}

HTTPClientMock represents mock struct for http client

func (*HTTPClientMock) Do

func (getter *HTTPClientMock) Do(req *http.Request) (*http.Response, error)

Do represents mock func for http client do request func

func (*HTTPClientMock) Get

func (getter *HTTPClientMock) Get(url string) (*http.Response, error)

Get represents mock func for http client get func

type HTTPResponseMock

type HTTPResponseMock struct {
	mock.Mock
	http.ResponseWriter
}

HTTPResponseMock represents struct for mocking an http response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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