mock

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 5 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 mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCacher added in v0.1.1

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

MockCacher is a mock of Cacher interface.

func NewMockCacher added in v0.1.1

func NewMockCacher(ctrl *gomock.Controller) *MockCacher

NewMockCacher creates a new mock instance.

func (*MockCacher) Close added in v0.1.1

func (m *MockCacher) Close() error

Close mocks base method.

func (*MockCacher) EXPECT added in v0.1.1

func (m *MockCacher) EXPECT() *MockCacherMockRecorder

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

func (*MockCacher) Get added in v0.1.1

func (m *MockCacher) Get(arg0 context.Context, arg1 string) (scrapemate.Response, error)

Get mocks base method.

func (*MockCacher) Set added in v0.1.1

func (m *MockCacher) Set(arg0 context.Context, arg1 string, arg2 *scrapemate.Response) error

Set mocks base method.

type MockCacherMockRecorder added in v0.1.1

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

MockCacherMockRecorder is the mock recorder for MockCacher.

func (*MockCacherMockRecorder) Close added in v0.1.1

func (mr *MockCacherMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockCacherMockRecorder) Get added in v0.1.1

func (mr *MockCacherMockRecorder) Get(arg0, arg1 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacherMockRecorder) Set added in v0.1.1

func (mr *MockCacherMockRecorder) Set(arg0, arg1, arg2 any) *gomock.Call

Set indicates an expected call of Set.

type MockHTMLParser added in v0.4.0

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

MockHTMLParser is a mock of HTMLParser interface.

func NewMockHTMLParser added in v0.4.0

func NewMockHTMLParser(ctrl *gomock.Controller) *MockHTMLParser

NewMockHTMLParser creates a new mock instance.

func (*MockHTMLParser) EXPECT added in v0.4.0

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

func (*MockHTMLParser) Parse added in v0.4.0

func (m *MockHTMLParser) Parse(arg0 context.Context, arg1 []byte) (any, error)

Parse mocks base method.

type MockHTMLParserMockRecorder added in v0.4.0

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

MockHTMLParserMockRecorder is the mock recorder for MockHTMLParser.

func (*MockHTMLParserMockRecorder) Parse added in v0.4.0

func (mr *MockHTMLParserMockRecorder) Parse(arg0, arg1 any) *gomock.Call

Parse indicates an expected call of Parse.

type MockHTTPFetcher added in v0.4.0

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

MockHTTPFetcher is a mock of HTTPFetcher interface.

func NewMockHTTPFetcher added in v0.4.0

func NewMockHTTPFetcher(ctrl *gomock.Controller) *MockHTTPFetcher

NewMockHTTPFetcher creates a new mock instance.

func (*MockHTTPFetcher) Close added in v0.7.1

func (m *MockHTTPFetcher) Close() error

Close mocks base method.

func (*MockHTTPFetcher) EXPECT added in v0.4.0

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

func (*MockHTTPFetcher) Fetch added in v0.4.0

Fetch mocks base method.

type MockHTTPFetcherMockRecorder added in v0.4.0

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

MockHTTPFetcherMockRecorder is the mock recorder for MockHTTPFetcher.

func (*MockHTTPFetcherMockRecorder) Close added in v0.7.1

Close indicates an expected call of Close.

func (*MockHTTPFetcherMockRecorder) Fetch added in v0.4.0

func (mr *MockHTTPFetcherMockRecorder) Fetch(arg0, arg1 any) *gomock.Call

Fetch indicates an expected call of Fetch.

type MockJobProvider

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

MockJobProvider is a mock of JobProvider interface.

func NewMockJobProvider

func NewMockJobProvider(ctrl *gomock.Controller) *MockJobProvider

NewMockJobProvider creates a new mock instance.

func (*MockJobProvider) EXPECT

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

func (*MockJobProvider) Jobs

func (m *MockJobProvider) Jobs(arg0 context.Context) (<-chan scrapemate.IJob, <-chan error)

Jobs mocks base method.

func (*MockJobProvider) Push

func (m *MockJobProvider) Push(arg0 context.Context, arg1 scrapemate.IJob) error

Push mocks base method.

type MockJobProviderMockRecorder

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

MockJobProviderMockRecorder is the mock recorder for MockJobProvider.

func (*MockJobProviderMockRecorder) Jobs

func (mr *MockJobProviderMockRecorder) Jobs(arg0 any) *gomock.Call

Jobs indicates an expected call of Jobs.

func (*MockJobProviderMockRecorder) Push

func (mr *MockJobProviderMockRecorder) Push(arg0, arg1 any) *gomock.Call

Push indicates an expected call of Push.

type MockProxyRotator added in v0.7.1

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

MockProxyRotator is a mock of ProxyRotator interface.

func NewMockProxyRotator added in v0.7.1

func NewMockProxyRotator(ctrl *gomock.Controller) *MockProxyRotator

NewMockProxyRotator creates a new mock instance.

func (*MockProxyRotator) EXPECT added in v0.7.1

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

func (*MockProxyRotator) GetCredentials added in v0.7.1

func (m *MockProxyRotator) GetCredentials() (string, string)

GetCredentials mocks base method.

func (*MockProxyRotator) Next added in v0.7.1

func (m *MockProxyRotator) Next() string

Next mocks base method.

func (*MockProxyRotator) RoundTrip added in v0.7.1

func (m *MockProxyRotator) RoundTrip(arg0 *http.Request) (*http.Response, error)

RoundTrip mocks base method.

type MockProxyRotatorMockRecorder added in v0.7.1

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

MockProxyRotatorMockRecorder is the mock recorder for MockProxyRotator.

func (*MockProxyRotatorMockRecorder) GetCredentials added in v0.7.1

func (mr *MockProxyRotatorMockRecorder) GetCredentials() *gomock.Call

GetCredentials indicates an expected call of GetCredentials.

func (*MockProxyRotatorMockRecorder) Next added in v0.7.1

Next indicates an expected call of Next.

func (*MockProxyRotatorMockRecorder) RoundTrip added in v0.7.1

func (mr *MockProxyRotatorMockRecorder) RoundTrip(arg0 any) *gomock.Call

RoundTrip indicates an expected call of RoundTrip.

type MockResultWriter added in v0.2.1

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

MockResultWriter is a mock of ResultWriter interface.

func NewMockResultWriter added in v0.2.1

func NewMockResultWriter(ctrl *gomock.Controller) *MockResultWriter

NewMockResultWriter creates a new mock instance.

func (*MockResultWriter) EXPECT added in v0.2.1

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

func (*MockResultWriter) Run added in v0.2.1

func (m *MockResultWriter) Run(arg0 context.Context, arg1 <-chan scrapemate.Result) error

Run mocks base method.

type MockResultWriterMockRecorder added in v0.2.1

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

MockResultWriterMockRecorder is the mock recorder for MockResultWriter.

func (*MockResultWriterMockRecorder) Run added in v0.2.1

func (mr *MockResultWriterMockRecorder) Run(arg0, arg1 any) *gomock.Call

Run indicates an expected call of Run.

Jump to

Keyboard shortcuts

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