Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAnalyzer
- type MockAnalyzerInfo
- type MockAnalyzerInfoMockRecorder
- type MockAnalyzerMockRecorder
- type MockBodyExtractor
- type MockBodyExtractorMockRecorder
- type MockUrlExecutor
- type MockUrlExecutorMockRecorder
- type MockUrlExecutorProvider
- type MockUrlExecutorProviderMockRecorder
- type MockWebPageAnalyzerResponseManager
- func (m *MockWebPageAnalyzerResponseManager) AddHeadingLevel(tag, level string)
- func (m *MockWebPageAnalyzerResponseManager) AddUrlInfo(url string, urlType, status int, latency int64)
- func (m *MockWebPageAnalyzerResponseManager) EXPECT() *MockWebPageAnalyzerResponseManagerMockRecorder
- func (m *MockWebPageAnalyzerResponseManager) SetExtractTime(extractTime int64)
- func (m *MockWebPageAnalyzerResponseManager) SetHasLogin(hasLogin bool)
- func (m *MockWebPageAnalyzerResponseManager) SetHtmlVersion(htmlVersion string)
- func (m *MockWebPageAnalyzerResponseManager) SetServiceTime(serviceTime int64)
- func (m *MockWebPageAnalyzerResponseManager) SetTitle(title string)
- func (m *MockWebPageAnalyzerResponseManager) To() responses.AnalysisSuccessResponse
- func (m *MockWebPageAnalyzerResponseManager) ToString() string
- type MockWebPageAnalyzerResponseManagerMockRecorder
- func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) AddHeadingLevel(tag, level interface{}) *gomock.Call
- func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) AddUrlInfo(url, urlType, status, latency interface{}) *gomock.Call
- func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) SetExtractTime(extractTime interface{}) *gomock.Call
- func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) SetHasLogin(hasLogin interface{}) *gomock.Call
- func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) SetHtmlVersion(htmlVersion interface{}) *gomock.Call
- func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) SetServiceTime(serviceTime interface{}) *gomock.Call
- func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) SetTitle(title interface{}) *gomock.Call
- func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) To() *gomock.Call
- func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) ToString() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAnalyzer ¶
type MockAnalyzer struct {
// contains filtered or unexported fields
}
MockAnalyzer is a mock of Analyzer interface.
func NewMockAnalyzer ¶
func NewMockAnalyzer(ctrl *gomock.Controller) *MockAnalyzer
NewMockAnalyzer creates a new mock instance.
func (*MockAnalyzer) Analyze ¶
func (m *MockAnalyzer) Analyze(arg0 schema.AnalyzerInfo, arg1 responses.WebPageAnalyzerResponseManager)
Analyze mocks base method.
func (*MockAnalyzer) EXPECT ¶
func (m *MockAnalyzer) EXPECT() *MockAnalyzerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAnalyzerInfo ¶
type MockAnalyzerInfo struct {
// contains filtered or unexported fields
}
MockAnalyzerInfo is a mock of AnalyzerInfo interface.
func NewMockAnalyzerInfo ¶
func NewMockAnalyzerInfo(ctrl *gomock.Controller) *MockAnalyzerInfo
NewMockAnalyzerInfo creates a new mock instance.
func (*MockAnalyzerInfo) EXPECT ¶
func (m *MockAnalyzerInfo) EXPECT() *MockAnalyzerInfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAnalyzerInfo) GetBody ¶
func (m *MockAnalyzerInfo) GetBody() string
GetBody mocks base method.
func (*MockAnalyzerInfo) GetHost ¶
func (m *MockAnalyzerInfo) GetHost() string
GetHost mocks base method.
type MockAnalyzerInfoMockRecorder ¶
type MockAnalyzerInfoMockRecorder struct {
// contains filtered or unexported fields
}
MockAnalyzerInfoMockRecorder is the mock recorder for MockAnalyzerInfo.
func (*MockAnalyzerInfoMockRecorder) GetBody ¶
func (mr *MockAnalyzerInfoMockRecorder) GetBody() *gomock.Call
GetBody indicates an expected call of GetBody.
func (*MockAnalyzerInfoMockRecorder) GetHost ¶
func (mr *MockAnalyzerInfoMockRecorder) GetHost() *gomock.Call
GetHost indicates an expected call of GetHost.
type MockAnalyzerMockRecorder ¶
type MockAnalyzerMockRecorder struct {
// contains filtered or unexported fields
}
MockAnalyzerMockRecorder is the mock recorder for MockAnalyzer.
func (*MockAnalyzerMockRecorder) Analyze ¶
func (mr *MockAnalyzerMockRecorder) Analyze(arg0, arg1 interface{}) *gomock.Call
Analyze indicates an expected call of Analyze.
type MockBodyExtractor ¶
type MockBodyExtractor struct {
// contains filtered or unexported fields
}
MockBodyExtractor is a mock of BodyExtractor interface.
func NewMockBodyExtractor ¶
func NewMockBodyExtractor(ctrl *gomock.Controller) *MockBodyExtractor
NewMockBodyExtractor creates a new mock instance.
func (*MockBodyExtractor) EXPECT ¶
func (m *MockBodyExtractor) EXPECT() *MockBodyExtractorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBodyExtractorMockRecorder ¶
type MockBodyExtractorMockRecorder struct {
// contains filtered or unexported fields
}
MockBodyExtractorMockRecorder is the mock recorder for MockBodyExtractor.
func (*MockBodyExtractorMockRecorder) Extract ¶
func (mr *MockBodyExtractorMockRecorder) Extract(url interface{}) *gomock.Call
Extract indicates an expected call of Extract.
type MockUrlExecutor ¶
type MockUrlExecutor struct {
// contains filtered or unexported fields
}
MockUrlExecutor is a mock of UrlExecutor interface.
func NewMockUrlExecutor ¶
func NewMockUrlExecutor(ctrl *gomock.Controller) *MockUrlExecutor
NewMockUrlExecutor creates a new mock instance.
func (*MockUrlExecutor) Build ¶
func (m *MockUrlExecutor) Build(url string, wg *sync.WaitGroup, fn channels.ExecFunc) channels.UrlExecutor
Build mocks base method.
func (*MockUrlExecutor) Create ¶
func (m *MockUrlExecutor) Create() channels.UrlExecutor
Create mocks base method.
func (*MockUrlExecutor) EXPECT ¶
func (m *MockUrlExecutor) EXPECT() *MockUrlExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUrlExecutor) PushChannel ¶
func (m *MockUrlExecutor) PushChannel()
PushChannel mocks base method.
type MockUrlExecutorMockRecorder ¶
type MockUrlExecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockUrlExecutorMockRecorder is the mock recorder for MockUrlExecutor.
func (*MockUrlExecutorMockRecorder) Build ¶
func (mr *MockUrlExecutorMockRecorder) Build(url, wg, fn interface{}) *gomock.Call
Build indicates an expected call of Build.
func (*MockUrlExecutorMockRecorder) Create ¶
func (mr *MockUrlExecutorMockRecorder) Create() *gomock.Call
Create indicates an expected call of Create.
func (*MockUrlExecutorMockRecorder) PushChannel ¶
func (mr *MockUrlExecutorMockRecorder) PushChannel() *gomock.Call
PushChannel indicates an expected call of PushChannel.
type MockUrlExecutorProvider ¶
type MockUrlExecutorProvider struct {
// contains filtered or unexported fields
}
MockUrlExecutorProvider is a mock of UrlExecutorProvider interface.
func NewMockUrlExecutorProvider ¶
func NewMockUrlExecutorProvider(ctrl *gomock.Controller) *MockUrlExecutorProvider
NewMockUrlExecutorProvider creates a new mock instance.
func (*MockUrlExecutorProvider) EXPECT ¶
func (m *MockUrlExecutorProvider) EXPECT() *MockUrlExecutorProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUrlExecutorProvider) Provide ¶
func (m *MockUrlExecutorProvider) Provide() channels.UrlExecutor
Provide mocks base method.
type MockUrlExecutorProviderMockRecorder ¶
type MockUrlExecutorProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockUrlExecutorProviderMockRecorder is the mock recorder for MockUrlExecutorProvider.
func (*MockUrlExecutorProviderMockRecorder) Provide ¶
func (mr *MockUrlExecutorProviderMockRecorder) Provide() *gomock.Call
Provide indicates an expected call of Provide.
type MockWebPageAnalyzerResponseManager ¶
type MockWebPageAnalyzerResponseManager struct {
// contains filtered or unexported fields
}
MockWebPageAnalyzerResponseManager is a mock of WebPageAnalyzerResponseManager interface.
func NewMockWebPageAnalyzerResponseManager ¶
func NewMockWebPageAnalyzerResponseManager(ctrl *gomock.Controller) *MockWebPageAnalyzerResponseManager
NewMockWebPageAnalyzerResponseManager creates a new mock instance.
func (*MockWebPageAnalyzerResponseManager) AddHeadingLevel ¶
func (m *MockWebPageAnalyzerResponseManager) AddHeadingLevel(tag, level string)
AddHeadingLevel mocks base method.
func (*MockWebPageAnalyzerResponseManager) AddUrlInfo ¶
func (m *MockWebPageAnalyzerResponseManager) AddUrlInfo(url string, urlType, status int, latency int64)
AddUrlInfo mocks base method.
func (*MockWebPageAnalyzerResponseManager) EXPECT ¶
func (m *MockWebPageAnalyzerResponseManager) EXPECT() *MockWebPageAnalyzerResponseManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWebPageAnalyzerResponseManager) SetExtractTime ¶
func (m *MockWebPageAnalyzerResponseManager) SetExtractTime(extractTime int64)
SetExtractTime mocks base method.
func (*MockWebPageAnalyzerResponseManager) SetHasLogin ¶
func (m *MockWebPageAnalyzerResponseManager) SetHasLogin(hasLogin bool)
SetHasLogin mocks base method.
func (*MockWebPageAnalyzerResponseManager) SetHtmlVersion ¶
func (m *MockWebPageAnalyzerResponseManager) SetHtmlVersion(htmlVersion string)
SetHtmlVersion mocks base method.
func (*MockWebPageAnalyzerResponseManager) SetServiceTime ¶
func (m *MockWebPageAnalyzerResponseManager) SetServiceTime(serviceTime int64)
SetServiceTime mocks base method.
func (*MockWebPageAnalyzerResponseManager) SetTitle ¶
func (m *MockWebPageAnalyzerResponseManager) SetTitle(title string)
SetTitle mocks base method.
func (*MockWebPageAnalyzerResponseManager) To ¶
func (m *MockWebPageAnalyzerResponseManager) To() responses.AnalysisSuccessResponse
To mocks base method.
func (*MockWebPageAnalyzerResponseManager) ToString ¶
func (m *MockWebPageAnalyzerResponseManager) ToString() string
ToString mocks base method.
type MockWebPageAnalyzerResponseManagerMockRecorder ¶
type MockWebPageAnalyzerResponseManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockWebPageAnalyzerResponseManagerMockRecorder is the mock recorder for MockWebPageAnalyzerResponseManager.
func (*MockWebPageAnalyzerResponseManagerMockRecorder) AddHeadingLevel ¶
func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) AddHeadingLevel(tag, level interface{}) *gomock.Call
AddHeadingLevel indicates an expected call of AddHeadingLevel.
func (*MockWebPageAnalyzerResponseManagerMockRecorder) AddUrlInfo ¶
func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) AddUrlInfo(url, urlType, status, latency interface{}) *gomock.Call
AddUrlInfo indicates an expected call of AddUrlInfo.
func (*MockWebPageAnalyzerResponseManagerMockRecorder) SetExtractTime ¶
func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) SetExtractTime(extractTime interface{}) *gomock.Call
SetExtractTime indicates an expected call of SetExtractTime.
func (*MockWebPageAnalyzerResponseManagerMockRecorder) SetHasLogin ¶
func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) SetHasLogin(hasLogin interface{}) *gomock.Call
SetHasLogin indicates an expected call of SetHasLogin.
func (*MockWebPageAnalyzerResponseManagerMockRecorder) SetHtmlVersion ¶
func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) SetHtmlVersion(htmlVersion interface{}) *gomock.Call
SetHtmlVersion indicates an expected call of SetHtmlVersion.
func (*MockWebPageAnalyzerResponseManagerMockRecorder) SetServiceTime ¶
func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) SetServiceTime(serviceTime interface{}) *gomock.Call
SetServiceTime indicates an expected call of SetServiceTime.
func (*MockWebPageAnalyzerResponseManagerMockRecorder) SetTitle ¶
func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) SetTitle(title interface{}) *gomock.Call
SetTitle indicates an expected call of SetTitle.
func (*MockWebPageAnalyzerResponseManagerMockRecorder) To ¶
func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) To() *gomock.Call
To indicates an expected call of To.
func (*MockWebPageAnalyzerResponseManagerMockRecorder) ToString ¶
func (mr *MockWebPageAnalyzerResponseManagerMockRecorder) ToString() *gomock.Call
ToString indicates an expected call of ToString.