-
Notifications
You must be signed in to change notification settings - Fork 0
/
twunproxy_mock.go
86 lines (70 loc) · 1.93 KB
/
twunproxy_mock.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// Automatically generated by MockGen. DO NOT EDIT!
// Source: twunproxy.go
package twunproxy
import (
gomock "github.com/golang/mock/gomock"
)
// Mock of Conn interface
type MockConn struct {
ctrl *gomock.Controller
recorder *_MockConnRecorder
}
// Recorder for MockConn (not exported)
type _MockConnRecorder struct {
mock *MockConn
}
func NewMockConn(ctrl *gomock.Controller) *MockConn {
mock := &MockConn{ctrl: ctrl}
mock.recorder = &_MockConnRecorder{mock}
return mock
}
func (_m *MockConn) EXPECT() *_MockConnRecorder {
return _m.recorder
}
func (_m *MockConn) Close() error {
ret := _m.ctrl.Call(_m, "Close")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockConnRecorder) Close() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Close")
}
func (_m *MockConn) Do(commandName string, args ...interface{}) (interface{}, error) {
_s := []interface{}{commandName}
for _, _x := range args {
_s = append(_s, _x)
}
ret := _m.ctrl.Call(_m, "Do", _s...)
ret0, _ := ret[0].(interface{})
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockConnRecorder) Do(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
_s := append([]interface{}{arg0}, arg1...)
return _mr.mock.ctrl.RecordCall(_mr.mock, "Do", _s...)
}
// Mock of ConnGetter interface
type MockConnGetter struct {
ctrl *gomock.Controller
recorder *_MockConnGetterRecorder
}
// Recorder for MockConnGetter (not exported)
type _MockConnGetterRecorder struct {
mock *MockConnGetter
}
func NewMockConnGetter(ctrl *gomock.Controller) *MockConnGetter {
mock := &MockConnGetter{ctrl: ctrl}
mock.recorder = &_MockConnGetterRecorder{mock}
return mock
}
func (_m *MockConnGetter) EXPECT() *_MockConnGetterRecorder {
return _m.recorder
}
func (_m *MockConnGetter) Get() Conn {
ret := _m.ctrl.Call(_m, "Get")
ret0, _ := ret[0].(Conn)
return ret0
}
func (_mr *_MockConnGetterRecorder) Get() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Get")
}