|
0 |
package http
|
|
1 |
|
|
2 |
import (
|
|
3 |
"bufio"
|
|
4 |
"io"
|
|
5 |
"net"
|
|
6 |
"net/http"
|
|
7 |
"testing"
|
|
8 |
)
|
|
9 |
|
|
10 |
type versatileWriter struct {
|
|
11 |
http.ResponseWriter
|
|
12 |
closeNotifyCalled bool
|
|
13 |
hijackCalled bool
|
|
14 |
readFromCalled bool
|
|
15 |
pushCalled bool
|
|
16 |
flushCalled bool
|
|
17 |
}
|
|
18 |
|
|
19 |
func (v *versatileWriter) Flush() { v.flushCalled = true }
|
|
20 |
func (v *versatileWriter) Push(target string, opts *http.PushOptions) error {
|
|
21 |
v.pushCalled = true
|
|
22 |
return nil
|
|
23 |
}
|
|
24 |
func (v *versatileWriter) ReadFrom(r io.Reader) (n int64, err error) {
|
|
25 |
v.readFromCalled = true
|
|
26 |
return 0, nil
|
|
27 |
}
|
|
28 |
func (v *versatileWriter) CloseNotify() <-chan bool { v.closeNotifyCalled = true; return nil }
|
|
29 |
func (v *versatileWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
|
|
30 |
v.hijackCalled = true
|
|
31 |
return nil, nil, nil
|
|
32 |
}
|
|
33 |
|
|
34 |
func TestInterceptingWriter_passthroughs(t *testing.T) {
|
|
35 |
w := &versatileWriter{}
|
|
36 |
iw := (&interceptingWriter{ResponseWriter: w}).reimplementInterfaces()
|
|
37 |
iw.(http.Flusher).Flush()
|
|
38 |
iw.(http.Pusher).Push("", nil)
|
|
39 |
iw.(http.CloseNotifier).CloseNotify()
|
|
40 |
iw.(http.Hijacker).Hijack()
|
|
41 |
iw.(io.ReaderFrom).ReadFrom(nil)
|
|
42 |
|
|
43 |
if !w.flushCalled {
|
|
44 |
t.Error("Flush not called")
|
|
45 |
}
|
|
46 |
if !w.pushCalled {
|
|
47 |
t.Error("Push not called")
|
|
48 |
}
|
|
49 |
if !w.closeNotifyCalled {
|
|
50 |
t.Error("CloseNotify not called")
|
|
51 |
}
|
|
52 |
if !w.hijackCalled {
|
|
53 |
t.Error("Hijack not called")
|
|
54 |
}
|
|
55 |
if !w.readFromCalled {
|
|
56 |
t.Error("ReadFrom not called")
|
|
57 |
}
|
|
58 |
}
|
|
59 |
|
|
60 |
// TestInterceptingWriter_reimplementInterfaces is also derived from
|
|
61 |
// https://github.com/felixge/httpsnoop, like interceptingWriter.
|
|
62 |
func TestInterceptingWriter_reimplementInterfaces(t *testing.T) {
|
|
63 |
// combination 1/32
|
|
64 |
{
|
|
65 |
t.Log("http.ResponseWriter")
|
|
66 |
inner := struct {
|
|
67 |
http.ResponseWriter
|
|
68 |
}{}
|
|
69 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
70 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
71 |
t.Error("unexpected interface")
|
|
72 |
}
|
|
73 |
if _, ok := w.(http.Flusher); ok != false {
|
|
74 |
t.Error("unexpected interface")
|
|
75 |
}
|
|
76 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
77 |
t.Error("unexpected interface")
|
|
78 |
}
|
|
79 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
80 |
t.Error("unexpected interface")
|
|
81 |
}
|
|
82 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
83 |
t.Error("unexpected interface")
|
|
84 |
}
|
|
85 |
if _, ok := w.(http.Pusher); ok != false {
|
|
86 |
t.Error("unexpected interface")
|
|
87 |
}
|
|
88 |
|
|
89 |
}
|
|
90 |
|
|
91 |
// combination 2/32
|
|
92 |
{
|
|
93 |
t.Log("http.ResponseWriter, http.Pusher")
|
|
94 |
inner := struct {
|
|
95 |
http.ResponseWriter
|
|
96 |
http.Pusher
|
|
97 |
}{}
|
|
98 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
99 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
100 |
t.Error("unexpected interface")
|
|
101 |
}
|
|
102 |
if _, ok := w.(http.Flusher); ok != false {
|
|
103 |
t.Error("unexpected interface")
|
|
104 |
}
|
|
105 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
106 |
t.Error("unexpected interface")
|
|
107 |
}
|
|
108 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
109 |
t.Error("unexpected interface")
|
|
110 |
}
|
|
111 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
112 |
t.Error("unexpected interface")
|
|
113 |
}
|
|
114 |
if _, ok := w.(http.Pusher); ok != true {
|
|
115 |
t.Error("unexpected interface")
|
|
116 |
}
|
|
117 |
|
|
118 |
}
|
|
119 |
|
|
120 |
// combination 3/32
|
|
121 |
{
|
|
122 |
t.Log("http.ResponseWriter, io.ReaderFrom")
|
|
123 |
inner := struct {
|
|
124 |
http.ResponseWriter
|
|
125 |
io.ReaderFrom
|
|
126 |
}{}
|
|
127 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
128 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
129 |
t.Error("unexpected interface")
|
|
130 |
}
|
|
131 |
if _, ok := w.(http.Flusher); ok != false {
|
|
132 |
t.Error("unexpected interface")
|
|
133 |
}
|
|
134 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
135 |
t.Error("unexpected interface")
|
|
136 |
}
|
|
137 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
138 |
t.Error("unexpected interface")
|
|
139 |
}
|
|
140 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
141 |
t.Error("unexpected interface")
|
|
142 |
}
|
|
143 |
if _, ok := w.(http.Pusher); ok != false {
|
|
144 |
t.Error("unexpected interface")
|
|
145 |
}
|
|
146 |
|
|
147 |
}
|
|
148 |
|
|
149 |
// combination 4/32
|
|
150 |
{
|
|
151 |
t.Log("http.ResponseWriter, io.ReaderFrom, http.Pusher")
|
|
152 |
inner := struct {
|
|
153 |
http.ResponseWriter
|
|
154 |
io.ReaderFrom
|
|
155 |
http.Pusher
|
|
156 |
}{}
|
|
157 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
158 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
159 |
t.Error("unexpected interface")
|
|
160 |
}
|
|
161 |
if _, ok := w.(http.Flusher); ok != false {
|
|
162 |
t.Error("unexpected interface")
|
|
163 |
}
|
|
164 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
165 |
t.Error("unexpected interface")
|
|
166 |
}
|
|
167 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
168 |
t.Error("unexpected interface")
|
|
169 |
}
|
|
170 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
171 |
t.Error("unexpected interface")
|
|
172 |
}
|
|
173 |
if _, ok := w.(http.Pusher); ok != true {
|
|
174 |
t.Error("unexpected interface")
|
|
175 |
}
|
|
176 |
|
|
177 |
}
|
|
178 |
|
|
179 |
// combination 5/32
|
|
180 |
{
|
|
181 |
t.Log("http.ResponseWriter, http.Hijacker")
|
|
182 |
inner := struct {
|
|
183 |
http.ResponseWriter
|
|
184 |
http.Hijacker
|
|
185 |
}{}
|
|
186 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
187 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
188 |
t.Error("unexpected interface")
|
|
189 |
}
|
|
190 |
if _, ok := w.(http.Flusher); ok != false {
|
|
191 |
t.Error("unexpected interface")
|
|
192 |
}
|
|
193 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
194 |
t.Error("unexpected interface")
|
|
195 |
}
|
|
196 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
197 |
t.Error("unexpected interface")
|
|
198 |
}
|
|
199 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
200 |
t.Error("unexpected interface")
|
|
201 |
}
|
|
202 |
if _, ok := w.(http.Pusher); ok != false {
|
|
203 |
t.Error("unexpected interface")
|
|
204 |
}
|
|
205 |
|
|
206 |
}
|
|
207 |
|
|
208 |
// combination 6/32
|
|
209 |
{
|
|
210 |
t.Log("http.ResponseWriter, http.Hijacker, http.Pusher")
|
|
211 |
inner := struct {
|
|
212 |
http.ResponseWriter
|
|
213 |
http.Hijacker
|
|
214 |
http.Pusher
|
|
215 |
}{}
|
|
216 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
217 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
218 |
t.Error("unexpected interface")
|
|
219 |
}
|
|
220 |
if _, ok := w.(http.Flusher); ok != false {
|
|
221 |
t.Error("unexpected interface")
|
|
222 |
}
|
|
223 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
224 |
t.Error("unexpected interface")
|
|
225 |
}
|
|
226 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
227 |
t.Error("unexpected interface")
|
|
228 |
}
|
|
229 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
230 |
t.Error("unexpected interface")
|
|
231 |
}
|
|
232 |
if _, ok := w.(http.Pusher); ok != true {
|
|
233 |
t.Error("unexpected interface")
|
|
234 |
}
|
|
235 |
|
|
236 |
}
|
|
237 |
|
|
238 |
// combination 7/32
|
|
239 |
{
|
|
240 |
t.Log("http.ResponseWriter, http.Hijacker, io.ReaderFrom")
|
|
241 |
inner := struct {
|
|
242 |
http.ResponseWriter
|
|
243 |
http.Hijacker
|
|
244 |
io.ReaderFrom
|
|
245 |
}{}
|
|
246 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
247 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
248 |
t.Error("unexpected interface")
|
|
249 |
}
|
|
250 |
if _, ok := w.(http.Flusher); ok != false {
|
|
251 |
t.Error("unexpected interface")
|
|
252 |
}
|
|
253 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
254 |
t.Error("unexpected interface")
|
|
255 |
}
|
|
256 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
257 |
t.Error("unexpected interface")
|
|
258 |
}
|
|
259 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
260 |
t.Error("unexpected interface")
|
|
261 |
}
|
|
262 |
if _, ok := w.(http.Pusher); ok != false {
|
|
263 |
t.Error("unexpected interface")
|
|
264 |
}
|
|
265 |
|
|
266 |
}
|
|
267 |
|
|
268 |
// combination 8/32
|
|
269 |
{
|
|
270 |
t.Log("http.ResponseWriter, http.Hijacker, io.ReaderFrom, http.Pusher")
|
|
271 |
inner := struct {
|
|
272 |
http.ResponseWriter
|
|
273 |
http.Hijacker
|
|
274 |
io.ReaderFrom
|
|
275 |
http.Pusher
|
|
276 |
}{}
|
|
277 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
278 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
279 |
t.Error("unexpected interface")
|
|
280 |
}
|
|
281 |
if _, ok := w.(http.Flusher); ok != false {
|
|
282 |
t.Error("unexpected interface")
|
|
283 |
}
|
|
284 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
285 |
t.Error("unexpected interface")
|
|
286 |
}
|
|
287 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
288 |
t.Error("unexpected interface")
|
|
289 |
}
|
|
290 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
291 |
t.Error("unexpected interface")
|
|
292 |
}
|
|
293 |
if _, ok := w.(http.Pusher); ok != true {
|
|
294 |
t.Error("unexpected interface")
|
|
295 |
}
|
|
296 |
|
|
297 |
}
|
|
298 |
|
|
299 |
// combination 9/32
|
|
300 |
{
|
|
301 |
t.Log("http.ResponseWriter, http.CloseNotifier")
|
|
302 |
inner := struct {
|
|
303 |
http.ResponseWriter
|
|
304 |
http.CloseNotifier
|
|
305 |
}{}
|
|
306 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
307 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
308 |
t.Error("unexpected interface")
|
|
309 |
}
|
|
310 |
if _, ok := w.(http.Flusher); ok != false {
|
|
311 |
t.Error("unexpected interface")
|
|
312 |
}
|
|
313 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
314 |
t.Error("unexpected interface")
|
|
315 |
}
|
|
316 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
317 |
t.Error("unexpected interface")
|
|
318 |
}
|
|
319 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
320 |
t.Error("unexpected interface")
|
|
321 |
}
|
|
322 |
if _, ok := w.(http.Pusher); ok != false {
|
|
323 |
t.Error("unexpected interface")
|
|
324 |
}
|
|
325 |
|
|
326 |
}
|
|
327 |
|
|
328 |
// combination 10/32
|
|
329 |
{
|
|
330 |
t.Log("http.ResponseWriter, http.CloseNotifier, http.Pusher")
|
|
331 |
inner := struct {
|
|
332 |
http.ResponseWriter
|
|
333 |
http.CloseNotifier
|
|
334 |
http.Pusher
|
|
335 |
}{}
|
|
336 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
337 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
338 |
t.Error("unexpected interface")
|
|
339 |
}
|
|
340 |
if _, ok := w.(http.Flusher); ok != false {
|
|
341 |
t.Error("unexpected interface")
|
|
342 |
}
|
|
343 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
344 |
t.Error("unexpected interface")
|
|
345 |
}
|
|
346 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
347 |
t.Error("unexpected interface")
|
|
348 |
}
|
|
349 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
350 |
t.Error("unexpected interface")
|
|
351 |
}
|
|
352 |
if _, ok := w.(http.Pusher); ok != true {
|
|
353 |
t.Error("unexpected interface")
|
|
354 |
}
|
|
355 |
|
|
356 |
}
|
|
357 |
|
|
358 |
// combination 11/32
|
|
359 |
{
|
|
360 |
t.Log("http.ResponseWriter, http.CloseNotifier, io.ReaderFrom")
|
|
361 |
inner := struct {
|
|
362 |
http.ResponseWriter
|
|
363 |
http.CloseNotifier
|
|
364 |
io.ReaderFrom
|
|
365 |
}{}
|
|
366 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
367 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
368 |
t.Error("unexpected interface")
|
|
369 |
}
|
|
370 |
if _, ok := w.(http.Flusher); ok != false {
|
|
371 |
t.Error("unexpected interface")
|
|
372 |
}
|
|
373 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
374 |
t.Error("unexpected interface")
|
|
375 |
}
|
|
376 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
377 |
t.Error("unexpected interface")
|
|
378 |
}
|
|
379 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
380 |
t.Error("unexpected interface")
|
|
381 |
}
|
|
382 |
if _, ok := w.(http.Pusher); ok != false {
|
|
383 |
t.Error("unexpected interface")
|
|
384 |
}
|
|
385 |
|
|
386 |
}
|
|
387 |
|
|
388 |
// combination 12/32
|
|
389 |
{
|
|
390 |
t.Log("http.ResponseWriter, http.CloseNotifier, io.ReaderFrom, http.Pusher")
|
|
391 |
inner := struct {
|
|
392 |
http.ResponseWriter
|
|
393 |
http.CloseNotifier
|
|
394 |
io.ReaderFrom
|
|
395 |
http.Pusher
|
|
396 |
}{}
|
|
397 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
398 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
399 |
t.Error("unexpected interface")
|
|
400 |
}
|
|
401 |
if _, ok := w.(http.Flusher); ok != false {
|
|
402 |
t.Error("unexpected interface")
|
|
403 |
}
|
|
404 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
405 |
t.Error("unexpected interface")
|
|
406 |
}
|
|
407 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
408 |
t.Error("unexpected interface")
|
|
409 |
}
|
|
410 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
411 |
t.Error("unexpected interface")
|
|
412 |
}
|
|
413 |
if _, ok := w.(http.Pusher); ok != true {
|
|
414 |
t.Error("unexpected interface")
|
|
415 |
}
|
|
416 |
|
|
417 |
}
|
|
418 |
|
|
419 |
// combination 13/32
|
|
420 |
{
|
|
421 |
t.Log("http.ResponseWriter, http.CloseNotifier, http.Hijacker")
|
|
422 |
inner := struct {
|
|
423 |
http.ResponseWriter
|
|
424 |
http.CloseNotifier
|
|
425 |
http.Hijacker
|
|
426 |
}{}
|
|
427 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
428 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
429 |
t.Error("unexpected interface")
|
|
430 |
}
|
|
431 |
if _, ok := w.(http.Flusher); ok != false {
|
|
432 |
t.Error("unexpected interface")
|
|
433 |
}
|
|
434 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
435 |
t.Error("unexpected interface")
|
|
436 |
}
|
|
437 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
438 |
t.Error("unexpected interface")
|
|
439 |
}
|
|
440 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
441 |
t.Error("unexpected interface")
|
|
442 |
}
|
|
443 |
if _, ok := w.(http.Pusher); ok != false {
|
|
444 |
t.Error("unexpected interface")
|
|
445 |
}
|
|
446 |
|
|
447 |
}
|
|
448 |
|
|
449 |
// combination 14/32
|
|
450 |
{
|
|
451 |
t.Log("http.ResponseWriter, http.CloseNotifier, http.Hijacker, http.Pusher")
|
|
452 |
inner := struct {
|
|
453 |
http.ResponseWriter
|
|
454 |
http.CloseNotifier
|
|
455 |
http.Hijacker
|
|
456 |
http.Pusher
|
|
457 |
}{}
|
|
458 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
459 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
460 |
t.Error("unexpected interface")
|
|
461 |
}
|
|
462 |
if _, ok := w.(http.Flusher); ok != false {
|
|
463 |
t.Error("unexpected interface")
|
|
464 |
}
|
|
465 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
466 |
t.Error("unexpected interface")
|
|
467 |
}
|
|
468 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
469 |
t.Error("unexpected interface")
|
|
470 |
}
|
|
471 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
472 |
t.Error("unexpected interface")
|
|
473 |
}
|
|
474 |
if _, ok := w.(http.Pusher); ok != true {
|
|
475 |
t.Error("unexpected interface")
|
|
476 |
}
|
|
477 |
|
|
478 |
}
|
|
479 |
|
|
480 |
// combination 15/32
|
|
481 |
{
|
|
482 |
t.Log("http.ResponseWriter, http.CloseNotifier, http.Hijacker, io.ReaderFrom")
|
|
483 |
inner := struct {
|
|
484 |
http.ResponseWriter
|
|
485 |
http.CloseNotifier
|
|
486 |
http.Hijacker
|
|
487 |
io.ReaderFrom
|
|
488 |
}{}
|
|
489 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
490 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
491 |
t.Error("unexpected interface")
|
|
492 |
}
|
|
493 |
if _, ok := w.(http.Flusher); ok != false {
|
|
494 |
t.Error("unexpected interface")
|
|
495 |
}
|
|
496 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
497 |
t.Error("unexpected interface")
|
|
498 |
}
|
|
499 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
500 |
t.Error("unexpected interface")
|
|
501 |
}
|
|
502 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
503 |
t.Error("unexpected interface")
|
|
504 |
}
|
|
505 |
if _, ok := w.(http.Pusher); ok != false {
|
|
506 |
t.Error("unexpected interface")
|
|
507 |
}
|
|
508 |
|
|
509 |
}
|
|
510 |
|
|
511 |
// combination 16/32
|
|
512 |
{
|
|
513 |
t.Log("http.ResponseWriter, http.CloseNotifier, http.Hijacker, io.ReaderFrom, http.Pusher")
|
|
514 |
inner := struct {
|
|
515 |
http.ResponseWriter
|
|
516 |
http.CloseNotifier
|
|
517 |
http.Hijacker
|
|
518 |
io.ReaderFrom
|
|
519 |
http.Pusher
|
|
520 |
}{}
|
|
521 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
522 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
523 |
t.Error("unexpected interface")
|
|
524 |
}
|
|
525 |
if _, ok := w.(http.Flusher); ok != false {
|
|
526 |
t.Error("unexpected interface")
|
|
527 |
}
|
|
528 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
529 |
t.Error("unexpected interface")
|
|
530 |
}
|
|
531 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
532 |
t.Error("unexpected interface")
|
|
533 |
}
|
|
534 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
535 |
t.Error("unexpected interface")
|
|
536 |
}
|
|
537 |
if _, ok := w.(http.Pusher); ok != true {
|
|
538 |
t.Error("unexpected interface")
|
|
539 |
}
|
|
540 |
|
|
541 |
}
|
|
542 |
|
|
543 |
// combination 17/32
|
|
544 |
{
|
|
545 |
t.Log("http.ResponseWriter, http.Flusher")
|
|
546 |
inner := struct {
|
|
547 |
http.ResponseWriter
|
|
548 |
http.Flusher
|
|
549 |
}{}
|
|
550 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
551 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
552 |
t.Error("unexpected interface")
|
|
553 |
}
|
|
554 |
if _, ok := w.(http.Flusher); ok != true {
|
|
555 |
t.Error("unexpected interface")
|
|
556 |
}
|
|
557 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
558 |
t.Error("unexpected interface")
|
|
559 |
}
|
|
560 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
561 |
t.Error("unexpected interface")
|
|
562 |
}
|
|
563 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
564 |
t.Error("unexpected interface")
|
|
565 |
}
|
|
566 |
if _, ok := w.(http.Pusher); ok != false {
|
|
567 |
t.Error("unexpected interface")
|
|
568 |
}
|
|
569 |
|
|
570 |
}
|
|
571 |
|
|
572 |
// combination 18/32
|
|
573 |
{
|
|
574 |
t.Log("http.ResponseWriter, http.Flusher, http.Pusher")
|
|
575 |
inner := struct {
|
|
576 |
http.ResponseWriter
|
|
577 |
http.Flusher
|
|
578 |
http.Pusher
|
|
579 |
}{}
|
|
580 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
581 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
582 |
t.Error("unexpected interface")
|
|
583 |
}
|
|
584 |
if _, ok := w.(http.Flusher); ok != true {
|
|
585 |
t.Error("unexpected interface")
|
|
586 |
}
|
|
587 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
588 |
t.Error("unexpected interface")
|
|
589 |
}
|
|
590 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
591 |
t.Error("unexpected interface")
|
|
592 |
}
|
|
593 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
594 |
t.Error("unexpected interface")
|
|
595 |
}
|
|
596 |
if _, ok := w.(http.Pusher); ok != true {
|
|
597 |
t.Error("unexpected interface")
|
|
598 |
}
|
|
599 |
|
|
600 |
}
|
|
601 |
|
|
602 |
// combination 19/32
|
|
603 |
{
|
|
604 |
t.Log("http.ResponseWriter, http.Flusher, io.ReaderFrom")
|
|
605 |
inner := struct {
|
|
606 |
http.ResponseWriter
|
|
607 |
http.Flusher
|
|
608 |
io.ReaderFrom
|
|
609 |
}{}
|
|
610 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
611 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
612 |
t.Error("unexpected interface")
|
|
613 |
}
|
|
614 |
if _, ok := w.(http.Flusher); ok != true {
|
|
615 |
t.Error("unexpected interface")
|
|
616 |
}
|
|
617 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
618 |
t.Error("unexpected interface")
|
|
619 |
}
|
|
620 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
621 |
t.Error("unexpected interface")
|
|
622 |
}
|
|
623 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
624 |
t.Error("unexpected interface")
|
|
625 |
}
|
|
626 |
if _, ok := w.(http.Pusher); ok != false {
|
|
627 |
t.Error("unexpected interface")
|
|
628 |
}
|
|
629 |
|
|
630 |
}
|
|
631 |
|
|
632 |
// combination 20/32
|
|
633 |
{
|
|
634 |
t.Log("http.ResponseWriter, http.Flusher, io.ReaderFrom, http.Pusher")
|
|
635 |
inner := struct {
|
|
636 |
http.ResponseWriter
|
|
637 |
http.Flusher
|
|
638 |
io.ReaderFrom
|
|
639 |
http.Pusher
|
|
640 |
}{}
|
|
641 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
642 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
643 |
t.Error("unexpected interface")
|
|
644 |
}
|
|
645 |
if _, ok := w.(http.Flusher); ok != true {
|
|
646 |
t.Error("unexpected interface")
|
|
647 |
}
|
|
648 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
649 |
t.Error("unexpected interface")
|
|
650 |
}
|
|
651 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
652 |
t.Error("unexpected interface")
|
|
653 |
}
|
|
654 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
655 |
t.Error("unexpected interface")
|
|
656 |
}
|
|
657 |
if _, ok := w.(http.Pusher); ok != true {
|
|
658 |
t.Error("unexpected interface")
|
|
659 |
}
|
|
660 |
|
|
661 |
}
|
|
662 |
|
|
663 |
// combination 21/32
|
|
664 |
{
|
|
665 |
t.Log("http.ResponseWriter, http.Flusher, http.Hijacker")
|
|
666 |
inner := struct {
|
|
667 |
http.ResponseWriter
|
|
668 |
http.Flusher
|
|
669 |
http.Hijacker
|
|
670 |
}{}
|
|
671 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
672 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
673 |
t.Error("unexpected interface")
|
|
674 |
}
|
|
675 |
if _, ok := w.(http.Flusher); ok != true {
|
|
676 |
t.Error("unexpected interface")
|
|
677 |
}
|
|
678 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
679 |
t.Error("unexpected interface")
|
|
680 |
}
|
|
681 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
682 |
t.Error("unexpected interface")
|
|
683 |
}
|
|
684 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
685 |
t.Error("unexpected interface")
|
|
686 |
}
|
|
687 |
if _, ok := w.(http.Pusher); ok != false {
|
|
688 |
t.Error("unexpected interface")
|
|
689 |
}
|
|
690 |
|
|
691 |
}
|
|
692 |
|
|
693 |
// combination 22/32
|
|
694 |
{
|
|
695 |
t.Log("http.ResponseWriter, http.Flusher, http.Hijacker, http.Pusher")
|
|
696 |
inner := struct {
|
|
697 |
http.ResponseWriter
|
|
698 |
http.Flusher
|
|
699 |
http.Hijacker
|
|
700 |
http.Pusher
|
|
701 |
}{}
|
|
702 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
703 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
704 |
t.Error("unexpected interface")
|
|
705 |
}
|
|
706 |
if _, ok := w.(http.Flusher); ok != true {
|
|
707 |
t.Error("unexpected interface")
|
|
708 |
}
|
|
709 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
710 |
t.Error("unexpected interface")
|
|
711 |
}
|
|
712 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
713 |
t.Error("unexpected interface")
|
|
714 |
}
|
|
715 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
716 |
t.Error("unexpected interface")
|
|
717 |
}
|
|
718 |
if _, ok := w.(http.Pusher); ok != true {
|
|
719 |
t.Error("unexpected interface")
|
|
720 |
}
|
|
721 |
|
|
722 |
}
|
|
723 |
|
|
724 |
// combination 23/32
|
|
725 |
{
|
|
726 |
t.Log("http.ResponseWriter, http.Flusher, http.Hijacker, io.ReaderFrom")
|
|
727 |
inner := struct {
|
|
728 |
http.ResponseWriter
|
|
729 |
http.Flusher
|
|
730 |
http.Hijacker
|
|
731 |
io.ReaderFrom
|
|
732 |
}{}
|
|
733 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
734 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
735 |
t.Error("unexpected interface")
|
|
736 |
}
|
|
737 |
if _, ok := w.(http.Flusher); ok != true {
|
|
738 |
t.Error("unexpected interface")
|
|
739 |
}
|
|
740 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
741 |
t.Error("unexpected interface")
|
|
742 |
}
|
|
743 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
744 |
t.Error("unexpected interface")
|
|
745 |
}
|
|
746 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
747 |
t.Error("unexpected interface")
|
|
748 |
}
|
|
749 |
if _, ok := w.(http.Pusher); ok != false {
|
|
750 |
t.Error("unexpected interface")
|
|
751 |
}
|
|
752 |
|
|
753 |
}
|
|
754 |
|
|
755 |
// combination 24/32
|
|
756 |
{
|
|
757 |
t.Log("http.ResponseWriter, http.Flusher, http.Hijacker, io.ReaderFrom, http.Pusher")
|
|
758 |
inner := struct {
|
|
759 |
http.ResponseWriter
|
|
760 |
http.Flusher
|
|
761 |
http.Hijacker
|
|
762 |
io.ReaderFrom
|
|
763 |
http.Pusher
|
|
764 |
}{}
|
|
765 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
766 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
767 |
t.Error("unexpected interface")
|
|
768 |
}
|
|
769 |
if _, ok := w.(http.Flusher); ok != true {
|
|
770 |
t.Error("unexpected interface")
|
|
771 |
}
|
|
772 |
if _, ok := w.(http.CloseNotifier); ok != false {
|
|
773 |
t.Error("unexpected interface")
|
|
774 |
}
|
|
775 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
776 |
t.Error("unexpected interface")
|
|
777 |
}
|
|
778 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
779 |
t.Error("unexpected interface")
|
|
780 |
}
|
|
781 |
if _, ok := w.(http.Pusher); ok != true {
|
|
782 |
t.Error("unexpected interface")
|
|
783 |
}
|
|
784 |
|
|
785 |
}
|
|
786 |
|
|
787 |
// combination 25/32
|
|
788 |
{
|
|
789 |
t.Log("http.ResponseWriter, http.Flusher, http.CloseNotifier")
|
|
790 |
inner := struct {
|
|
791 |
http.ResponseWriter
|
|
792 |
http.Flusher
|
|
793 |
http.CloseNotifier
|
|
794 |
}{}
|
|
795 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
796 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
797 |
t.Error("unexpected interface")
|
|
798 |
}
|
|
799 |
if _, ok := w.(http.Flusher); ok != true {
|
|
800 |
t.Error("unexpected interface")
|
|
801 |
}
|
|
802 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
803 |
t.Error("unexpected interface")
|
|
804 |
}
|
|
805 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
806 |
t.Error("unexpected interface")
|
|
807 |
}
|
|
808 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
809 |
t.Error("unexpected interface")
|
|
810 |
}
|
|
811 |
if _, ok := w.(http.Pusher); ok != false {
|
|
812 |
t.Error("unexpected interface")
|
|
813 |
}
|
|
814 |
|
|
815 |
}
|
|
816 |
|
|
817 |
// combination 26/32
|
|
818 |
{
|
|
819 |
t.Log("http.ResponseWriter, http.Flusher, http.CloseNotifier, http.Pusher")
|
|
820 |
inner := struct {
|
|
821 |
http.ResponseWriter
|
|
822 |
http.Flusher
|
|
823 |
http.CloseNotifier
|
|
824 |
http.Pusher
|
|
825 |
}{}
|
|
826 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
827 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
828 |
t.Error("unexpected interface")
|
|
829 |
}
|
|
830 |
if _, ok := w.(http.Flusher); ok != true {
|
|
831 |
t.Error("unexpected interface")
|
|
832 |
}
|
|
833 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
834 |
t.Error("unexpected interface")
|
|
835 |
}
|
|
836 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
837 |
t.Error("unexpected interface")
|
|
838 |
}
|
|
839 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
840 |
t.Error("unexpected interface")
|
|
841 |
}
|
|
842 |
if _, ok := w.(http.Pusher); ok != true {
|
|
843 |
t.Error("unexpected interface")
|
|
844 |
}
|
|
845 |
|
|
846 |
}
|
|
847 |
|
|
848 |
// combination 27/32
|
|
849 |
{
|
|
850 |
t.Log("http.ResponseWriter, http.Flusher, http.CloseNotifier, io.ReaderFrom")
|
|
851 |
inner := struct {
|
|
852 |
http.ResponseWriter
|
|
853 |
http.Flusher
|
|
854 |
http.CloseNotifier
|
|
855 |
io.ReaderFrom
|
|
856 |
}{}
|
|
857 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
858 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
859 |
t.Error("unexpected interface")
|
|
860 |
}
|
|
861 |
if _, ok := w.(http.Flusher); ok != true {
|
|
862 |
t.Error("unexpected interface")
|
|
863 |
}
|
|
864 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
865 |
t.Error("unexpected interface")
|
|
866 |
}
|
|
867 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
868 |
t.Error("unexpected interface")
|
|
869 |
}
|
|
870 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
871 |
t.Error("unexpected interface")
|
|
872 |
}
|
|
873 |
if _, ok := w.(http.Pusher); ok != false {
|
|
874 |
t.Error("unexpected interface")
|
|
875 |
}
|
|
876 |
|
|
877 |
}
|
|
878 |
|
|
879 |
// combination 28/32
|
|
880 |
{
|
|
881 |
t.Log("http.ResponseWriter, http.Flusher, http.CloseNotifier, io.ReaderFrom, http.Pusher")
|
|
882 |
inner := struct {
|
|
883 |
http.ResponseWriter
|
|
884 |
http.Flusher
|
|
885 |
http.CloseNotifier
|
|
886 |
io.ReaderFrom
|
|
887 |
http.Pusher
|
|
888 |
}{}
|
|
889 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
890 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
891 |
t.Error("unexpected interface")
|
|
892 |
}
|
|
893 |
if _, ok := w.(http.Flusher); ok != true {
|
|
894 |
t.Error("unexpected interface")
|
|
895 |
}
|
|
896 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
897 |
t.Error("unexpected interface")
|
|
898 |
}
|
|
899 |
if _, ok := w.(http.Hijacker); ok != false {
|
|
900 |
t.Error("unexpected interface")
|
|
901 |
}
|
|
902 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
903 |
t.Error("unexpected interface")
|
|
904 |
}
|
|
905 |
if _, ok := w.(http.Pusher); ok != true {
|
|
906 |
t.Error("unexpected interface")
|
|
907 |
}
|
|
908 |
|
|
909 |
}
|
|
910 |
|
|
911 |
// combination 29/32
|
|
912 |
{
|
|
913 |
t.Log("http.ResponseWriter, http.Flusher, http.CloseNotifier, http.Hijacker")
|
|
914 |
inner := struct {
|
|
915 |
http.ResponseWriter
|
|
916 |
http.Flusher
|
|
917 |
http.CloseNotifier
|
|
918 |
http.Hijacker
|
|
919 |
}{}
|
|
920 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
921 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
922 |
t.Error("unexpected interface")
|
|
923 |
}
|
|
924 |
if _, ok := w.(http.Flusher); ok != true {
|
|
925 |
t.Error("unexpected interface")
|
|
926 |
}
|
|
927 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
928 |
t.Error("unexpected interface")
|
|
929 |
}
|
|
930 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
931 |
t.Error("unexpected interface")
|
|
932 |
}
|
|
933 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
934 |
t.Error("unexpected interface")
|
|
935 |
}
|
|
936 |
if _, ok := w.(http.Pusher); ok != false {
|
|
937 |
t.Error("unexpected interface")
|
|
938 |
}
|
|
939 |
|
|
940 |
}
|
|
941 |
|
|
942 |
// combination 30/32
|
|
943 |
{
|
|
944 |
t.Log("http.ResponseWriter, http.Flusher, http.CloseNotifier, http.Hijacker, http.Pusher")
|
|
945 |
inner := struct {
|
|
946 |
http.ResponseWriter
|
|
947 |
http.Flusher
|
|
948 |
http.CloseNotifier
|
|
949 |
http.Hijacker
|
|
950 |
http.Pusher
|
|
951 |
}{}
|
|
952 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
953 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
954 |
t.Error("unexpected interface")
|
|
955 |
}
|
|
956 |
if _, ok := w.(http.Flusher); ok != true {
|
|
957 |
t.Error("unexpected interface")
|
|
958 |
}
|
|
959 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
960 |
t.Error("unexpected interface")
|
|
961 |
}
|
|
962 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
963 |
t.Error("unexpected interface")
|
|
964 |
}
|
|
965 |
if _, ok := w.(io.ReaderFrom); ok != false {
|
|
966 |
t.Error("unexpected interface")
|
|
967 |
}
|
|
968 |
if _, ok := w.(http.Pusher); ok != true {
|
|
969 |
t.Error("unexpected interface")
|
|
970 |
}
|
|
971 |
|
|
972 |
}
|
|
973 |
|
|
974 |
// combination 31/32
|
|
975 |
{
|
|
976 |
t.Log("http.ResponseWriter, http.Flusher, http.CloseNotifier, http.Hijacker, io.ReaderFrom")
|
|
977 |
inner := struct {
|
|
978 |
http.ResponseWriter
|
|
979 |
http.Flusher
|
|
980 |
http.CloseNotifier
|
|
981 |
http.Hijacker
|
|
982 |
io.ReaderFrom
|
|
983 |
}{}
|
|
984 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
985 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
986 |
t.Error("unexpected interface")
|
|
987 |
}
|
|
988 |
if _, ok := w.(http.Flusher); ok != true {
|
|
989 |
t.Error("unexpected interface")
|
|
990 |
}
|
|
991 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
992 |
t.Error("unexpected interface")
|
|
993 |
}
|
|
994 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
995 |
t.Error("unexpected interface")
|
|
996 |
}
|
|
997 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
998 |
t.Error("unexpected interface")
|
|
999 |
}
|
|
1000 |
if _, ok := w.(http.Pusher); ok != false {
|
|
1001 |
t.Error("unexpected interface")
|
|
1002 |
}
|
|
1003 |
|
|
1004 |
}
|
|
1005 |
|
|
1006 |
// combination 32/32
|
|
1007 |
{
|
|
1008 |
t.Log("http.ResponseWriter, http.Flusher, http.CloseNotifier, http.Hijacker, io.ReaderFrom, http.Pusher")
|
|
1009 |
inner := struct {
|
|
1010 |
http.ResponseWriter
|
|
1011 |
http.Flusher
|
|
1012 |
http.CloseNotifier
|
|
1013 |
http.Hijacker
|
|
1014 |
io.ReaderFrom
|
|
1015 |
http.Pusher
|
|
1016 |
}{}
|
|
1017 |
w := (&interceptingWriter{ResponseWriter: inner}).reimplementInterfaces()
|
|
1018 |
if _, ok := w.(http.ResponseWriter); ok != true {
|
|
1019 |
t.Error("unexpected interface")
|
|
1020 |
}
|
|
1021 |
if _, ok := w.(http.Flusher); ok != true {
|
|
1022 |
t.Error("unexpected interface")
|
|
1023 |
}
|
|
1024 |
if _, ok := w.(http.CloseNotifier); ok != true {
|
|
1025 |
t.Error("unexpected interface")
|
|
1026 |
}
|
|
1027 |
if _, ok := w.(http.Hijacker); ok != true {
|
|
1028 |
t.Error("unexpected interface")
|
|
1029 |
}
|
|
1030 |
if _, ok := w.(io.ReaderFrom); ok != true {
|
|
1031 |
t.Error("unexpected interface")
|
|
1032 |
}
|
|
1033 |
if _, ok := w.(http.Pusher); ok != true {
|
|
1034 |
t.Error("unexpected interface")
|
|
1035 |
}
|
|
1036 |
|
|
1037 |
}
|
|
1038 |
}
|