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