Branch Coverage

blib/lib/Test2/Compare.pm
Criterion Covered Total %
branch 55 60 91.6


line true false branch
36 8599 9 @BUILD ? :
40 1 2 if @BUILD and $_[0] and $BUILD[-1] == $_[0]
41 2 1 @BUILD ? :
42 2 1 $_[0] ? :
51 1 2447 unless defined wantarray
59 14 2433 unless $ok
72 117 14765 unless ($CONVERT_LOADED)
88 14881 1 if (ref $config) { }
90 0 14881 if $bad
91 0 14881 unless defined $config->{'implicit_end'}
92 0 14881 unless defined $config->{'use_regex'}
93 0 14881 unless defined $config->{'use_code'}
96 0 1 if ($config) { }
118 200 19923 unless defined $thing
121 10209 9714 if (&blessed($thing) and $thing->isa("Test2::Compare::Base"))
122 157 7854 if ($config->{'implicit_end'} and $thing->can("set_ending") and not defined $thing->ending)
128 4824 5228 unless $thing->isa("Test2::Compare::Wildcard")
130 3973 1255 unless $newthing->builder
131 4639 589 unless $newthing->_file
132 4639 589 unless $newthing->_lines
138 333 90 $config->{'implicit_end'} ? :
423 9291 if $type eq "ARRAY"
141 257 78 $config->{'implicit_end'} ? :
335 8956 if $type eq "HASH"
147 238 8718 if $config->{'use_regex'} and $type eq "REGEXP"
150 2 8716 if $config->{'use_code'} and $type eq "CODE"
152 4 8712 if $type eq "REGEXP"
155 13 8699 if ($type eq "SCALAR" or $type eq "VSTRING")
160 4 8695 if $type eq "REF"
163 32 8663 if $type