MCPcopy Create free account
hub / github.com/gavv/httpexpect / TestChain_TestingTB

Function TestChain_TestingTB

chain_test.go:778–880  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

776}
777
778func 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 },

Callers

nothing calls this directly

Calls 10

newMockFormatterFunction · 0.85
newMockLoggerFunction · 0.85
NewFatalReporterFunction · 0.85
NewAssertReporterFunction · 0.85
NewRequireReporterFunction · 0.85
newMockReporterFunction · 0.85
newChainWithConfigFunction · 0.85
newChainWithDefaultsFunction · 0.85
withDefaultsMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…