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