(t *testing.T)
| 776 | } |
| 777 | |
| 778 | func TestChain_TestingTB(t *testing.T) { |
| 779 | type args struct { |
| 780 | handler AssertionHandler |
| 781 | reporter Reporter |
| 782 | } |
| 783 | cases := []struct { |
| 784 | name string |
| 785 | args args |
| 786 | want bool |
| 787 | }{ |
| 788 | { |
| 789 | name: "testing.T", |
| 790 | args: args{ |
| 791 | handler: &DefaultAssertionHandler{ |
| 792 | Formatter: newMockFormatter(t), |
| 793 | Reporter: t, |
| 794 | Logger: newMockLogger(t), |
| 795 | }, |
| 796 | reporter: t, |
| 797 | }, |
| 798 | want: true, |
| 799 | }, |
| 800 | { |
| 801 | name: "testing.B", |
| 802 | args: args{ |
| 803 | handler: &DefaultAssertionHandler{ |
| 804 | Formatter: newMockFormatter(t), |
| 805 | Reporter: &testing.B{}, |
| 806 | Logger: newMockLogger(t), |
| 807 | }, |
| 808 | reporter: &testing.B{}, |
| 809 | }, |
| 810 | want: true, |
| 811 | }, |
| 812 | { |
| 813 | name: "testing.TB", |
| 814 | args: args{ |
| 815 | handler: &DefaultAssertionHandler{ |
| 816 | Formatter: newMockFormatter(t), |
| 817 | Reporter: testing.TB(t), |
| 818 | Logger: newMockLogger(t), |
| 819 | }, |
| 820 | reporter: testing.TB(t), |
| 821 | }, |
| 822 | want: true, |
| 823 | }, |
| 824 | { |
| 825 | name: "AssertReporter", |
| 826 | args: args{ |
| 827 | handler: &DefaultAssertionHandler{ |
| 828 | Formatter: newMockFormatter(t), |
| 829 | Reporter: NewFatalReporter(t), |
| 830 | Logger: newMockLogger(t), |
| 831 | }, |
| 832 | reporter: NewFatalReporter(t), |
| 833 | }, |
| 834 | want: true, |
| 835 | }, |
nothing calls this directly
no test coverage detected
searching dependent graphs…