Branch Coverage

blib/lib/App/GitHooks/Test.pm
Criterion Covered Total %
branch 15 36 41.6


line true false branch
87 0 9 if scalar keys %args != 0
153 0 0 if scalar keys %args != 0
224 0 9 unless Data::Validate::Type::is_arrayref($plugins)
226 0 9 unless Data::Validate::Type::is_arrayref($hooks)
228 0 9 if scalar keys %args != 0
232 9 0 ($ENV{'HARNESS_PERL_SWITCHES'} // '') =~ /Devel::Cover/ || ($ENV{'PERL5OPT'} // '') =~ /Devel::Cover/ ? :
272 9 0 $test_coverage ? :
277 9 0 defined $hook_template_ref ? :
280 0 9 unless ok defined $hook_template && $hook_template =~ /\w/, 'The hook template exists.'
301 0 9 unless $test_coverage
309 9 0 if ($ENV{'COVER_DB_PATH'} // '') eq ''
322 0 0 if $is_valid
334 9 0 if defined $cover_db_path
397 9 0 if defined $plugins
461 0 0 if scalar keys %args != 0
552 0 3 if scalar keys %args != 0
554 0 3 unless defined $hook_name
556 0 3 unless $hook_name =~ /^[\w-]+$/