Branch Coverage

blib/lib/Smart/Match.pm
Criterion Covered Total %
branch 45 74 60.8


line true false branch
53 0 10 unless @_
54 10 0 if (wantarray) { }
58 0 0 if @_ > 1
72 4 9 if $_ ~~ $candidate
82 2 8 unless $_ ~~ $candidate
92 1 4 if $_ ~~ $candidate
103 3 3 if $_ ~~ $candidate
104 1 5 if $count > 1
117 16 0 if looks_like_number $_
119 2 0 if scalar sub { ; }
120 5 0 if scalar sub { ; }
124 3 0 if looks_like_number $_
129 12 0 if looks_like_number $_
134 3 0 if looks_like_number $_
139 2 0 if looks_like_number $_
151 0 7 unless @_
152 8 4 if scalar sub { ; }
155 1 14 ref $_ ? :
159 3 0 if scalar sub { ; }
163 0 3 unless @_
164 3 0 if scalar sub { ; }
171 0 0 if blessed $_
176 110 0 if not blessed $_
188 11 1 if scalar sub { ; }
193 7 0 if scalar sub { ; }
198 2 0 if scalar sub { ; }
203 4 1 if scalar array_length(at_least(scalar @entries))
210 4 0 if $_ ~~ sub { ; }
218 4 0 if $_ ~~ sub { ; }
224 7 0 if scalar sub { ; }
229 1 0 if scalar sub { ; }
236 2 0 if scalar sub { ; }
241 2 0 if scalar sub { ; }
249 5 0 if $lhs ~~ sub { ; } and keys %{$lhs;} >= keys %{$hash;} and &List::Util::all(sub { exists $$lhs{$_}; } , keys %{$hash;})
255 4 4 if scalar sub { ; } and [sort(keys %{$_;})] ~~ [sort(keys %{$hash;})]
260 5 0 if scalar sub { ; }
265 0 16 if blessed $value