httpmock

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package httpmock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMock

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

ClientMock is a mock of Client interface.

func NewClientMock

func NewClientMock(ctrl *gomock.Controller) *ClientMock

NewClientMock creates a new mock instance.

func (*ClientMock) Do

func (m *ClientMock) Do(req *fasthttp.Request, resp *fasthttp.Response) error

Do mocks base method.

func (*ClientMock) EXPECT

func (m *ClientMock) EXPECT() *ClientMockMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*ClientMock) WithReadTimeout

func (m *ClientMock) WithReadTimeout(timeout time.Duration) http.Client

WithReadTimeout mocks base method.

func (*ClientMock) WithWriteTimeout

func (m *ClientMock) WithWriteTimeout(timeout time.Duration) http.Client

WithWriteTimeout mocks base method.

type ClientMockMockRecorder

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

ClientMockMockRecorder is the mock recorder for ClientMock.

func (*ClientMockMockRecorder) Do

func (mr *ClientMockMockRecorder) Do(req, resp any) *gomock.Call

Do indicates an expected call of Do.

func (*ClientMockMockRecorder) WithReadTimeout

func (mr *ClientMockMockRecorder) WithReadTimeout(timeout any) *gomock.Call

WithReadTimeout indicates an expected call of WithReadTimeout.

func (*ClientMockMockRecorder) WithWriteTimeout

func (mr *ClientMockMockRecorder) WithWriteTimeout(timeout any) *gomock.Call

WithWriteTimeout indicates an expected call of WithWriteTimeout.

Jump to

Keyboard shortcuts

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