blib/lib/App/GitHooks.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 24 | 42 | 57.1 |
line | l | !l | condition |
---|---|---|---|
1192 | 0 | 4 | exists $skip{$name} && 'GITHOOKS_SKIP' |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
816 | 22 | 0 | 25 | defined $ENV{'GITHOOKSRC_FORCE'} and -e $ENV{'GITHOOKSRC_FORCE'} |
0 | 0 | 0 | defined $ENV{'GITHOOKSRC'} and -e $ENV{'GITHOOKSRC'} | |
0 | 0 | 0 | defined $ENV{'HOME'} and -e $ENV{'HOME'} . '/.githooksrc' | |
849 | 142 | 1 | 1 | $min_version and $min_version gt $VERSION |
1123 | 0 | 21 | 23 | defined $_ && $_ ne '' |
line | l | !l | condition |
---|---|---|---|
471 | 9 | 16 | delete $args{'exit'} // 1 |
695 | 32 | 1 | $self->{'plugins'}{$hook_name} // [] |
727 | 18 | 1 | ($config->get('_', 'force_plugins') // $limit_plugins) // '' |
784 | 0 | 290 | $all_plugins->{$hook} //= [] |
1029 | 0 | 0 | $repository->run('config', '--get', 'remote.origin.url') // '' |
1033 | 0 | 0 | $remote_name //= '(no remote found)' |
1067 | 2 | 0 | $self->{'arguments'} // [] |
1101 | 9 | 14 | $indent //= '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
727 | 18 | 0 | 1 | $config->get('_', 'force_plugins') // $limit_plugins |
1009 | 28 | 18 | 0 | $self->{'repository'} //= 'Git::Repository'->new |
1186 | 4 | 0 | 20 | exists $ENV{'GITHOOKS_SKIP'} or exists $ENV{'GITHOOKS_DISABLE'} |