Branch Coverage

blib/lib/Git/MoreHooks/CheckIndent.pm
Criterion Covered Total %
branch 3 24 12.5


line true false branch
49 0 0 unless ($file_def =~ /^ (?:[[:graph:]]+) (?: (?:[[:space:]]{1,}indent-size:[[:digit:]]+){1,} | (?:[[:space:]]{1,}indent-char:(?:space|tab|both)) ){1,} (?:[[:space:]]{0,}) $/msx)
68 0 0 unless ($exc_def =~ /^ (?:[[:space:]]{0,}) (?# Free spacing before) (?:[[:graph:]]+) (?# File name pattern) (?:[[:space:]]{1,}) (?# Required spacing) (?:[[:graph:]]+) (?# Regular expression) (?:[[:space:]]{0,}) (?# Free spacing after) $/msx)
118 3 4 if (length $indents > 0 and !($indents =~ /^[$ic]{1,}$/msx) || $ic ne "\t" && length($indents) % $params{'indent_size'} != 0)
126 3 0 if (not map({$row =~ /$_/msx;} @{$params{'exceptions'};})) { }
145 0 0 if $git->im_admin
146 0 0 unless (_setup_config($git))
151 0 0 if ($hook_name eq 'pre-commit') { }
0 0 elsif ($hook_name eq 'patchset-created' or $hook_name eq 'draft-published') { }
0 0 elsif ($hook_name eq 'update' or $hook_name eq 'pre-receive' or $hook_name eq 'ref-update') { }
194 0 0 if ($filename =~ /$file_regexp/msx)
201 0 0 if ($filename =~ /$exc_file_regexp/msx)
208 0 0 $opts{'indent_char'} eq 'space' ? :