mock_handler

package
v0.0.0-...-dd6da27 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_handler is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContext

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

MockContext is a mock of Context interface.

func NewMockContext

func NewMockContext(ctrl *gomock.Controller) *MockContext

NewMockContext creates a new mock instance.

func (*MockContext) EXPECT

func (m *MockContext) EXPECT() *MockContextMockRecorder

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

func (*MockContext) GetMethod

func (m *MockContext) GetMethod() string

GetMethod mocks base method.

func (*MockContext) GetRequestBody

func (m *MockContext) GetRequestBody() io.ReadCloser

GetRequestBody mocks base method.

func (*MockContext) GetURI

func (m *MockContext) GetURI() *url.URL

GetURI mocks base method.

func (*MockContext) JSON

func (m *MockContext) JSON(code int, obj interface{})

JSON mocks base method.

func (*MockContext) SendResponse

func (m *MockContext) SendResponse(response *http.Response, url string)

SendResponse mocks base method.

func (*MockContext) Status

func (m *MockContext) Status(code int)

Status mocks base method.

type MockContextMockRecorder

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

MockContextMockRecorder is the mock recorder for MockContext.

func (*MockContextMockRecorder) GetMethod

func (mr *MockContextMockRecorder) GetMethod() *gomock.Call

GetMethod indicates an expected call of GetMethod.

func (*MockContextMockRecorder) GetRequestBody

func (mr *MockContextMockRecorder) GetRequestBody() *gomock.Call

GetRequestBody indicates an expected call of GetRequestBody.

func (*MockContextMockRecorder) GetURI

func (mr *MockContextMockRecorder) GetURI() *gomock.Call

GetURI indicates an expected call of GetURI.

func (*MockContextMockRecorder) JSON

func (mr *MockContextMockRecorder) JSON(code, obj interface{}) *gomock.Call

JSON indicates an expected call of JSON.

func (*MockContextMockRecorder) SendResponse

func (mr *MockContextMockRecorder) SendResponse(response, url interface{}) *gomock.Call

SendResponse indicates an expected call of SendResponse.

func (*MockContextMockRecorder) Status

func (mr *MockContextMockRecorder) Status(code interface{}) *gomock.Call

Status indicates an expected call of Status.

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) Do

func (m *MockhttpClient) Do(req *http.Request) (*http.Response, error)

Do mocks base method.

func (*MockhttpClient) EXPECT

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

type MockhttpClientMockRecorder

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

MockhttpClientMockRecorder is the mock recorder for MockhttpClient.

func (*MockhttpClientMockRecorder) Do

func (mr *MockhttpClientMockRecorder) Do(req interface{}) *gomock.Call

Do indicates an expected call of Do.

Jump to

Keyboard shortcuts

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