-
Notifications
You must be signed in to change notification settings - Fork 479
/
Copy pathmock_spider.go
55 lines (45 loc) · 1.45 KB
/
mock_spider.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Code generated by MockGen. DO NOT EDIT.
// Source: go-demo/mock (interfaces: Spider)
// Package mock is a generated GoMock package.
package mock
import (
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockSpider is a mock of Spider interface
type MockSpider struct {
ctrl *gomock.Controller
recorder *MockSpiderMockRecorder
}
// MockSpiderMockRecorder is the mock recorder for MockSpider
type MockSpiderMockRecorder struct {
mock *MockSpider
}
// NewMockSpider creates a new mock instance
func NewMockSpider(ctrl *gomock.Controller) *MockSpider {
mock := &MockSpider{ctrl: ctrl}
mock.recorder = &MockSpiderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockSpider) EXPECT() *MockSpiderMockRecorder {
return m.recorder
}
// GetBody mocks base method
func (m *MockSpider) GetBody() string {
ret := m.ctrl.Call(m, "GetBody")
ret0, _ := ret[0].(string)
return ret0
}
// GetBody indicates an expected call of GetBody
func (mr *MockSpiderMockRecorder) GetBody() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBody", reflect.TypeOf((*MockSpider)(nil).GetBody))
}
// Init mocks base method
func (m *MockSpider) Init() {
m.ctrl.Call(m, "Init")
}
// Init indicates an expected call of Init
func (mr *MockSpiderMockRecorder) Init() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockSpider)(nil).Init))
}