Branch Coverage

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


line true false branch
36 8823 9 @BUILD ? :
40 1 2 if @BUILD and $_[0] and $BUILD[-1] == $_[0]
41 2 1 @BUILD ? :
42 2 1 $_[0] ? :
51 1 2523 unless defined wantarray
59 14 2509 unless $ok
72 117 14965 unless ($CONVERT_LOADED)
88 15081 1 if (ref $config) { }
90 0 15081 if $bad
91 0 15081 unless defined $config->{'implicit_end'}
92 0 15081 unless defined $config->{'use_regex'}
93 0 15081 unless defined $config->{'use_code'}
96 0 1 if ($config) { }
118 200 20267 unless defined $thing
121 10453 9814 if (&blessed($thing) and $thing->isa("Test2::Compare::Base"))
122 157 7866 if ($config->{'implicit_end'} and $thing->can("set_ending") and not defined $thing->ending)
128 4924 5372 unless $thing->isa("Test2::Compare::Wildcard")
130 4053 1319 unless $newthing->builder
131 4775 597 unless $newthing->_file
132 4775 597 unless $newthing->_lines
138 337 90 $config->{'implicit_end'} ? :
427 9387 if $type eq "ARRAY"
141 257 78 $config->{'implicit_end'} ? :
335 9052 if $type eq "HASH"
147 238 8814 if $config->{'use_regex'} and $type eq "REGEXP"
150 2 8812 if $config->{'use_code'} and $type eq "CODE"
152 4 8808 if $type eq "REGEXP"
155 13 8795 if ($type eq "SCALAR" or $type eq "VSTRING")
160 4 8791 if $type eq "REF"
163 32 8759 if $type