-
Notifications
You must be signed in to change notification settings - Fork 0
/
mockwriter_test.go
174 lines (147 loc) · 5.08 KB
/
mockwriter_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
// Code generated by MockGen. DO NOT EDIT.
// Source: writer.go
// Package gonbt is a generated GoMock package.
package gonbt
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockWriter is a mock of Writer interface.
type MockWriter struct {
ctrl *gomock.Controller
recorder *MockWriterMockRecorder
}
// MockWriterMockRecorder is the mock recorder for MockWriter.
type MockWriterMockRecorder struct {
mock *MockWriter
}
// NewMockWriter creates a new mock instance.
func NewMockWriter(ctrl *gomock.Controller) *MockWriter {
mock := &MockWriter{ctrl: ctrl}
mock.recorder = &MockWriterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockWriter) EXPECT() *MockWriterMockRecorder {
return m.recorder
}
// Byte mocks base method.
func (m *MockWriter) Byte(arg0 byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Byte", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Byte indicates an expected call of Byte.
func (mr *MockWriterMockRecorder) Byte(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Byte", reflect.TypeOf((*MockWriter)(nil).Byte), arg0)
}
// Bytes mocks base method.
func (m *MockWriter) Bytes(arg0 []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Bytes", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Bytes indicates an expected call of Bytes.
func (mr *MockWriterMockRecorder) Bytes(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockWriter)(nil).Bytes), arg0)
}
// Double mocks base method.
func (m *MockWriter) Double(arg0 float64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Double", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Double indicates an expected call of Double.
func (mr *MockWriterMockRecorder) Double(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Double", reflect.TypeOf((*MockWriter)(nil).Double), arg0)
}
// Float mocks base method.
func (m *MockWriter) Float(arg0 float32) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Float", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Float indicates an expected call of Float.
func (mr *MockWriterMockRecorder) Float(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Float", reflect.TypeOf((*MockWriter)(nil).Float), arg0)
}
// Int mocks base method.
func (m *MockWriter) Int(arg0 int32) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Int", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Int indicates an expected call of Int.
func (mr *MockWriterMockRecorder) Int(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Int", reflect.TypeOf((*MockWriter)(nil).Int), arg0)
}
// IntArray mocks base method.
func (m *MockWriter) IntArray(arg0 []int32) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IntArray", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// IntArray indicates an expected call of IntArray.
func (mr *MockWriterMockRecorder) IntArray(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntArray", reflect.TypeOf((*MockWriter)(nil).IntArray), arg0)
}
// Long mocks base method.
func (m *MockWriter) Long(arg0 int64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Long", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Long indicates an expected call of Long.
func (mr *MockWriterMockRecorder) Long(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Long", reflect.TypeOf((*MockWriter)(nil).Long), arg0)
}
// LongArray mocks base method.
func (m *MockWriter) LongArray(arg0 []int64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LongArray", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// LongArray indicates an expected call of LongArray.
func (mr *MockWriterMockRecorder) LongArray(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LongArray", reflect.TypeOf((*MockWriter)(nil).LongArray), arg0)
}
// Short mocks base method.
func (m *MockWriter) Short(arg0 int16) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Short", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Short indicates an expected call of Short.
func (mr *MockWriterMockRecorder) Short(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Short", reflect.TypeOf((*MockWriter)(nil).Short), arg0)
}
// String mocks base method.
func (m *MockWriter) String(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "String", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// String indicates an expected call of String.
func (mr *MockWriterMockRecorder) String(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockWriter)(nil).String), arg0)
}