Condition Coverage

blib/lib/App/GitHooks/StagedChanges.pm
Criterion Covered Total %
condition 14 27 51.8


and 2 conditions

line l !l condition
424 7 7 $fork_manager->start && (next)

and 3 conditions

line !l l&&!r l&&r condition
174 0 2 5 $allow_commit &&= $file_passes
253 14 0 0 defined $skip_directories and $file =~ /$skip_directories/
274 0 0 0 defined $first_line and $first_line =~ /^#!.*perl/
305 7 0 0 $git_action eq 'D' and scalar grep({$_->{'return_value'} != $App::GitHooks::StagedChanges::PLUGIN_RETURN_SKIPPED;} @$ordered_output) == 0

or 2 conditions

line l !l condition
445 7 0 $return_value // ''
501 0 2 $error_message //= '(no error message specified)'

or 3 conditions

line l !l&&r !l&&!r condition
175 0 1 6 $has_warnings ||= $file_warnings
268 0 0 14 not defined $extension or $extension eq ''
331 3 1 3 $return_value == $App::GitHooks::StagedChanges::PLUGIN_RETURN_PASSED or $return_value == $App::GitHooks::StagedChanges::PLUGIN_RETURN_SKIPPED