Branch Coverage

blib/lib/Symbol/Approx/Sub.pm
Criterion Covered Total %
branch 45 48 93.7


line true false branch
246 23 1 if @_
258 1 31 unless exists $defaults{$_}
285 8 15 unless (exists $param->{'xform'})
291 7 8 unless (defined $param->{'xform'})
296 1 7 if ($type eq 'CODE') { }
3 4 elsif ($type eq '') { }
3 1 elsif ($type eq 'ARRAY') { }
306 2 2 if ($subtype eq 'CODE') { }
1 1 elsif ($subtype eq '') { }
336 11 10 unless (exists $param->{'match'})
342 1 9 unless (defined $param->{'match'})
347 6 3 if ($type eq 'CODE') { }
1 2 elsif ($type eq '') { }
370 14 5 unless (exists $param->{'choose'})
376 1 4 unless (defined $param->{'choose'})
383 1 3 if ($type eq 'CODE') { }
1 2 elsif ($type eq '') { }
400 0 16 unless defined &$_
413 22 5 if ($matcher) { }
416 0 22 unless defined &{$matcher;}
428 0 8 unless defined &$chooser
472 2 25 unless @match_ind
475 17 8 if (@match_ind == 1) { }
481 1 24 if ($CONF{'suggest'}) { }