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 ¶
- type MockCacher
- type MockCacherMockRecorder
- type MockHTMLParser
- type MockHTMLParserMockRecorder
- type MockHTTPFetcher
- type MockHTTPFetcherMockRecorder
- type MockJobProvider
- type MockJobProviderMockRecorder
- type MockProxyRotator
- type MockProxyRotatorMockRecorder
- type MockResultWriter
- type MockResultWriterMockRecorder
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.
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
func (m *MockHTMLParser) EXPECT() *MockHTMLParserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockHTMLParserMockRecorder ¶ added in v0.4.0
type MockHTMLParserMockRecorder struct {
// contains filtered or unexported fields
}
MockHTMLParserMockRecorder is the mock recorder for MockHTMLParser.
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
func (m *MockHTTPFetcher) EXPECT() *MockHTTPFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHTTPFetcher) Fetch ¶ added in v0.4.0
func (m *MockHTTPFetcher) Fetch(arg0 context.Context, arg1 scrapemate.IJob) scrapemate.Response
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
func (mr *MockHTTPFetcherMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
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 ¶
func (m *MockJobProvider) EXPECT() *MockJobProviderMockRecorder
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.
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
func (m *MockProxyRotator) EXPECT() *MockProxyRotatorMockRecorder
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.
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
func (mr *MockProxyRotatorMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
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
func (m *MockResultWriter) EXPECT() *MockResultWriterMockRecorder
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.