Branch Coverage

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


line true false branch
36 8593 9 @BUILD ? :
40 1 2 if @BUILD and $_[0] and $BUILD[-1] == $_[0]
41 2 1 @BUILD ? :
42 2 1 $_[0] ? :
51 1 2443 unless defined wantarray
59 14 2429 unless $ok
72 116 14757 unless ($CONVERT_LOADED)
88 14872 1 if (ref $config) { }
90 0 14872 if $bad
91 0 14872 unless defined $config->{'implicit_end'}
92 0 14872 unless defined $config->{'use_regex'}
93 0 14872 unless defined $config->{'use_code'}
96 0 1 if ($config) { }
118 200 19912 unless defined $thing
121 10199 9713 if (&blessed($thing) and $thing->isa("Test2::Compare::Base"))
122 157 7844 if ($config->{'implicit_end'} and $thing->can("set_ending") and not defined $thing->ending)
128 4816 5226 unless $thing->isa("Test2::Compare::Wildcard")
130 3971 1255 unless $newthing->builder
131 4639 587 unless $newthing->_file
132 4639 587 unless $newthing->_lines
138 332 90 $config->{'implicit_end'} ? :
422 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