| line |
true |
false |
branch |
|
443
|
1 |
18 |
if scalar keys %args != 0 |
|
450
|
0 |
18 |
unless defined $name |
|
453
|
0 |
18 |
if scalar grep({$_ eq $name;} @$HOOK_NAMES) == 0 |
|
456
|
0 |
18 |
if scalar keys %args != 0 |
|
472
|
0 |
18 |
if $terminal->is_utf8 |
|
479
|
0 |
11 |
unless defined $hook_exit_code |
|
491
|
9 |
3 |
if ($exit) { } |
|
537
|
2 |
44 |
unless defined $arguments |
|
541
|
1 |
45 |
unless Data::Validate::Type::is_arrayref($arguments) |
|
543
|
1 |
44 |
unless defined $name |
|
546
|
1 |
43 |
if scalar grep({$_ eq $name;} @$HOOK_NAMES) == 0 |
|
547
|
0 |
43 |
if scalar keys %args != 0 |
|
568
|
17 |
26 |
if defined $force_use_color |
|
572
|
17 |
26 |
if defined $force_is_utf8 |
|
602
|
1 |
3 |
if scalar keys %args != 0 |
|
609
|
2 |
1 |
if (defined $name) |
|
612
|
1 |
1 |
if scalar grep({$_ eq $name;} @$HOOK_NAMES) == 0 |
|
647
|
0 |
33 |
unless defined $hook_name |
|
655
|
19 |
14 |
unless defined $self->{'plugins'} |
|
680
|
0 |
19 |
if (defined $limit_plugins) |
|
693
|
18 |
1 |
if ($force_plugins =~ /\w/) { } |
|
698
|
16 |
2 |
$_ =~ /^App/ ? : |
|
705
|
20 |
18 |
unless $forced_plugins{$plugin} |
|
713
|
0 |
18 |
if (scalar keys %forced_plugins != 0) |
|
726
|
2 |
0 |
if $plugin =~ /^App\:\:GitHooks\:\:Plugin\:\:Test\:\:/x |
|
743
|
34 |
290 |
unless $plugin->can('run_' . $hook) |
|
752
|
0 |
18 |
unless $hooks_declared |
|
772
|
43 |
97 |
unless (defined $self->{'config'}) |
|
778
|
22 |
21 |
if (defined $ENV{'GITHOOKSRC_FORCE'} and -e $ENV{'GITHOOKSRC_FORCE'}) { } |
|
|
21 |
0 |
elsif (-e '.githooksrc') { } |
|
|
0 |
0 |
elsif (defined $ENV{'GITHOOKSRC'} and -e $ENV{'GITHOOKSRC'}) { } |
|
|
0 |
0 |
elsif (defined $ENV{'HOME'} and -e $ENV{'HOME'} . '/.githooksrc') { } |
|
802
|
43 |
0 |
defined $config_file ? : |
|
833
|
3 |
3 |
if (defined $value) |
|
835
|
2 |
1 |
if ($value =~ /^(?:0|1)$/) { } |
|
861
|
0 |
8 |
$self->get_terminal->is_utf8 ? : |
|
879
|
0 |
3 |
$self->get_terminal->is_utf8 ? : |
|
897
|
0 |
1 |
$self->get_terminal->is_utf8 ? : |
|
916
|
14 |
0 |
unless (defined $self->{'staged_changes'}) |
|
943
|
17 |
28 |
if (defined $value) |
|
1061
|
0 |
23 |
unless defined $information |
|
1064
|
0 |
23 |
if (defined $terminal_width) { } |
|
1080
|
23 |
21 |
defined $_ && $_ ne '' ? : |
|
1099
|
0 |
28 |
$self->use_colors ? : |