httptestutils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package httptestutils is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGockRequest

func NewGockRequest() *gock.Request

Types

type GockMatcher

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

func NewGockMatcher

func NewGockMatcher(req *gock.Request) *GockMatcher

func (*GockMatcher) Matches

func (m *GockMatcher) Matches(x interface{}) bool

Matches returns whether x is a match.

func (*GockMatcher) String

func (m *GockMatcher) String() string

String describes what the matcher matches.

type MockSender

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

MockSender is a mock of Sender interface.

func NewMockSender

func NewMockSender(ctrl *gomock.Controller) *MockSender

NewMockSender creates a new mock instance.

func (*MockSender) Do

func (m *MockSender) Do(arg0 *http.Request) (*http.Response, error)

Do mocks base method.

func (*MockSender) EXPECT

func (m *MockSender) EXPECT() *MockSenderMockRecorder

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

type MockSenderMockRecorder

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

MockSenderMockRecorder is the mock recorder for MockSender.

func (*MockSenderMockRecorder) Do

func (mr *MockSenderMockRecorder) Do(arg0 interface{}) *gomock.Call

Do indicates an expected call of Do.

func (*MockSenderMockRecorder) Gock

func (mr *MockSenderMockRecorder) Gock(req *gock.Request) *gomock.Call

Gock indicates an expected call of Do.

Jump to

Keyboard shortcuts

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