mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 8 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 MockClock added in v0.0.2

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

MockClock is a mock of Clock interface.

func NewMockClock added in v0.0.2

func NewMockClock(ctrl *gomock.Controller) *MockClock

NewMockClock creates a new mock instance.

func (*MockClock) EXPECT added in v0.0.2

func (m *MockClock) EXPECT() *MockClockMockRecorder

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

func (*MockClock) Now added in v0.0.2

func (m *MockClock) Now() time.Time

Now mocks base method.

func (*MockClock) Sleep added in v0.0.2

func (m *MockClock) Sleep(ctx context.Context, wait time.Duration) error

Sleep mocks base method.

type MockClockMockRecorder added in v0.0.2

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

MockClockMockRecorder is the mock recorder for MockClock.

func (*MockClockMockRecorder) Now added in v0.0.2

func (mr *MockClockMockRecorder) Now() *gomock.Call

Now indicates an expected call of Now.

func (*MockClockMockRecorder) Sleep added in v0.0.2

func (mr *MockClockMockRecorder) Sleep(ctx, wait any) *gomock.Call

Sleep indicates an expected call of Sleep.

type MockNormal added in v0.0.2

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

MockNormal is a mock of Normal interface.

func NewMockNormal added in v0.0.2

func NewMockNormal(ctrl *gomock.Controller) *MockNormal

NewMockNormal creates a new mock instance.

func (*MockNormal) EXPECT added in v0.0.2

func (m *MockNormal) EXPECT() *MockNormalMockRecorder

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

func (*MockNormal) NormFloat64 added in v0.0.2

func (m *MockNormal) NormFloat64() float64

NormFloat64 mocks base method.

type MockNormalMockRecorder added in v0.0.2

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

MockNormalMockRecorder is the mock recorder for MockNormal.

func (*MockNormalMockRecorder) NormFloat64 added in v0.0.2

func (mr *MockNormalMockRecorder) NormFloat64() *gomock.Call

NormFloat64 indicates an expected call of NormFloat64.

type MockSearcher added in v0.0.2

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

MockSearcher is a mock of Searcher interface.

func NewMockSearcher added in v0.0.2

func NewMockSearcher(ctrl *gomock.Controller) *MockSearcher

NewMockSearcher creates a new mock instance.

func (*MockSearcher) EXPECT added in v0.0.2

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

func (*MockSearcher) RawSearch added in v0.0.2

func (m *MockSearcher) RawSearch(ctx context.Context, params arxiv.SearchParams) (*http.Response, error)

RawSearch mocks base method.

type MockSearcherMockRecorder added in v0.0.2

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

MockSearcherMockRecorder is the mock recorder for MockSearcher.

func (*MockSearcherMockRecorder) RawSearch added in v0.0.2

func (mr *MockSearcherMockRecorder) RawSearch(ctx, params any) *gomock.Call

RawSearch indicates an expected call of RawSearch.

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