mockhttp

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package mockhttp is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHttpClient

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

MockHttpClient is a mock of HttpClient interface.

func NewMockHttpClient

func NewMockHttpClient(ctrl *gomock.Controller) *MockHttpClient

NewMockHttpClient creates a new mock instance.

func (*MockHttpClient) EXPECT

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

func (*MockHttpClient) Get

func (m *MockHttpClient) Get(url string, headers map[string]string) ([]byte, error)

Get mocks base method.

func (*MockHttpClient) Post

func (m *MockHttpClient) Post(url string, body interface{}, headers map[string]string) ([]byte, error)

Post mocks base method.

type MockHttpClientMockRecorder

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

MockHttpClientMockRecorder is the mock recorder for MockHttpClient.

func (*MockHttpClientMockRecorder) Get

func (mr *MockHttpClientMockRecorder) Get(url, headers interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockHttpClientMockRecorder) Post

func (mr *MockHttpClientMockRecorder) Post(url, body, headers interface{}) *gomock.Call

Post indicates an expected call of Post.

Jump to

Keyboard shortcuts

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