Branch Coverage

blib/lib/Smart/Match.pm
Criterion Covered Total %
branch 43 68 63.2


line true false branch
56 0 10 unless @_
57 10 0 if (wantarray) { }
61 0 0 if @_ > 1
75 4 9 if $_ ~~ $candidate
85 2 8 unless $_ ~~ $candidate
95 1 4 if $_ ~~ $candidate
106 3 3 if $_ ~~ $candidate
107 1 5 if $count > 1
120 16 0 if looks_like_number $_
122 2 0 if scalar sub { ; }
123 5 0 if scalar sub { ; }
127 3 0 if looks_like_number $_
132 12 0 if looks_like_number $_
137 3 0 if looks_like_number $_
142 2 0 if looks_like_number $_
154 0 7 unless @_
155 8 4 if scalar sub { ; }
158 1 14 ref $_ ? :
162 3 0 if scalar sub { ; }
166 0 3 unless @_
167 3 0 if scalar sub { ; }
174 0 0 if blessed $_
191 11 1 if scalar sub { ; }
196 7 0 if scalar sub { ; }
201 2 0 if scalar sub { ; }
206 4 1 if scalar array_length(at_least(scalar @entries))
213 4 0 if $_ ~~ sub { ; }
219 31 0 if scalar sub { ; }
224 1 0 if scalar sub { ; }
231 26 4 if scalar sub { ; }
236 2 0 if scalar sub { ; }
244 5 0 if $lhs ~~ sub { ; } and keys %{$lhs;} >= keys %{$hash;} and &List::MoreUtils::all(sub { exists $$lhs{$_}; } , keys %{$hash;})
250 4 4 if scalar sub { ; } and hash_keys(sorted([sort(keys %{$hash;})]))
255 0 16 if blessed $value