mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWeb

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

MockWeb is a mock of Web interface.

func NewMockWeb

func NewMockWeb(ctrl *gomock.Controller) *MockWeb

NewMockWeb creates a new mock instance.

func (*MockWeb) EXPECT

func (m *MockWeb) EXPECT() *MockWebMockRecorder

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

func (*MockWeb) Get

func (m *MockWeb) Get(arg0 string) (io.ReadCloser, int64, error)

Get mocks base method.

func (*MockWeb) Head

func (m *MockWeb) Head(arg0 string) (int64, error)

Head mocks base method.

func (*MockWeb) Post

func (m *MockWeb) Post(address string, form url.Values) (string, error)

Post mocks base method.

type MockWebMockRecorder

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

MockWebMockRecorder is the mock recorder for MockWeb.

func (*MockWebMockRecorder) Get

func (mr *MockWebMockRecorder) Get(arg0 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockWebMockRecorder) Head

func (mr *MockWebMockRecorder) Head(arg0 any) *gomock.Call

Head indicates an expected call of Head.

func (*MockWebMockRecorder) Post

func (mr *MockWebMockRecorder) Post(address, form any) *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