Branch Coverage

blib/lib/Best.pm
Criterion Covered Total %
branch 45 52 86.5


line true false branch
170 8 56 unless defined $thing
181 11 41 unless defined $thing
206 0 0 if shift @_
209 0 0 @_ ? :
232 1 18 unless @_
238 3 15 if (not does_arrayref($_[0])) { }
2 13 elsif (not does_arrayref($_[0][0])) { }
256 8 10 if (@{$_[0];} == 1) { }
4 6 elsif (@{$_[0];} == 2 and does_arrayref($_[0][1])) { }
287 2 45 if (looks_like_version($param)) { }
16 29 elsif (does_hashref($param)) { }
302 0 18 unless (@modules)
314 8 10 if (not does_arrayref($params[0])) { }
341 2 44 if (my $precondition = $$spec{'if'})
342 2 0 unless &$precondition()
344 4 40 defined $$spec{'version'} ? :
345 21 20 $has_args ? :
1 41 $$spec{'args'} ? :
2 42 $no_import ? :
353 2 42 if (does_coderef($mod)) { }
355 1 1 unless $retval
366 25 19 if ($@) { }
2 17 elsif (my $postcondition = $$spec{'ok'}) { }
371 1 1 unless &$postcondition()
399 1 1 if defined $WHICH{$caller}{$mod}
400 1 0 if defined $WHICH{'__latest'}{$mod}