-
Notifications
You must be signed in to change notification settings - Fork 0
/
mockreader_test.go
184 lines (157 loc) · 5.13 KB
/
mockreader_test.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
// Code generated by MockGen. DO NOT EDIT.
// Source: reader.go
// Package gonbt is a generated GoMock package.
package gonbt
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockReader is a mock of Reader interface.
type MockReader struct {
ctrl *gomock.Controller
recorder *MockReaderMockRecorder
}
// MockReaderMockRecorder is the mock recorder for MockReader.
type MockReaderMockRecorder struct {
mock *MockReader
}
// NewMockReader creates a new mock instance.
func NewMockReader(ctrl *gomock.Controller) *MockReader {
mock := &MockReader{ctrl: ctrl}
mock.recorder = &MockReaderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockReader) EXPECT() *MockReaderMockRecorder {
return m.recorder
}
// Byte mocks base method.
func (m *MockReader) Byte() (byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Byte")
ret0, _ := ret[0].(byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Byte indicates an expected call of Byte.
func (mr *MockReaderMockRecorder) Byte() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Byte", reflect.TypeOf((*MockReader)(nil).Byte))
}
// Bytes mocks base method.
func (m *MockReader) Bytes() ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Bytes")
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Bytes indicates an expected call of Bytes.
func (mr *MockReaderMockRecorder) Bytes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockReader)(nil).Bytes))
}
// Double mocks base method.
func (m *MockReader) Double() (float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Double")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Double indicates an expected call of Double.
func (mr *MockReaderMockRecorder) Double() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Double", reflect.TypeOf((*MockReader)(nil).Double))
}
// Float mocks base method.
func (m *MockReader) Float() (float32, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Float")
ret0, _ := ret[0].(float32)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Float indicates an expected call of Float.
func (mr *MockReaderMockRecorder) Float() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Float", reflect.TypeOf((*MockReader)(nil).Float))
}
// Int mocks base method.
func (m *MockReader) Int() (int32, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Int")
ret0, _ := ret[0].(int32)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Int indicates an expected call of Int.
func (mr *MockReaderMockRecorder) Int() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Int", reflect.TypeOf((*MockReader)(nil).Int))
}
// IntArray mocks base method.
func (m *MockReader) IntArray() ([]int32, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IntArray")
ret0, _ := ret[0].([]int32)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// IntArray indicates an expected call of IntArray.
func (mr *MockReaderMockRecorder) IntArray() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntArray", reflect.TypeOf((*MockReader)(nil).IntArray))
}
// Long mocks base method.
func (m *MockReader) Long() (int64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Long")
ret0, _ := ret[0].(int64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Long indicates an expected call of Long.
func (mr *MockReaderMockRecorder) Long() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Long", reflect.TypeOf((*MockReader)(nil).Long))
}
// LongArray mocks base method.
func (m *MockReader) LongArray() ([]int64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LongArray")
ret0, _ := ret[0].([]int64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LongArray indicates an expected call of LongArray.
func (mr *MockReaderMockRecorder) LongArray() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LongArray", reflect.TypeOf((*MockReader)(nil).LongArray))
}
// Short mocks base method.
func (m *MockReader) Short() (int16, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Short")
ret0, _ := ret[0].(int16)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Short indicates an expected call of Short.
func (mr *MockReaderMockRecorder) Short() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Short", reflect.TypeOf((*MockReader)(nil).Short))
}
// String mocks base method.
func (m *MockReader) String() (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "String")
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// String indicates an expected call of String.
func (mr *MockReaderMockRecorder) String() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockReader)(nil).String))
}