Branch Coverage

blib/lib/App/GitHooks/Test.pm
Criterion Covered Total %
branch 16 36 44.4


line true false branch
88 0 9 if scalar keys %args != 0
154 0 0 if scalar keys %args != 0
225 0 9 unless Data::Validate::Type::is_arrayref($plugins)
227 0 9 unless Data::Validate::Type::is_arrayref($hooks)
229 0 9 if scalar keys %args != 0
234 9 0 ($ENV{'HARNESS_PERL_SWITCHES'} // '') =~ /Devel::Cover/ || ($ENV{'PERL5OPT'} // '') =~ /Devel::Cover/ ? :
273 9 0 $test_coverage ? :
278 9 0 defined $hook_template_ref ? :
281 0 9 unless &ok(scalar(defined $hook_template && $hook_template =~ /\w/), 'The hook template exists.')
304 0 9 unless $test_coverage
315 9 0 if ($ENV{'COVER_DB_PATH'} // '') eq ''
323 0 0 if $is_valid
335 9 0 if defined $cover_db_path
398 9 0 if defined $plugins
462 0 22 if scalar keys %args != 0
553 0 3 if scalar keys %args != 0
555 0 3 unless defined $hook_name
557 0 3 unless $hook_name =~ /^[\w-]+$/