Branch Coverage

blib/lib/App/Codeowners/Util.pm
Criterion Covered Total %
branch 34 58 58.6


line true false branch
34 1 3 if $filepath
41 0 10 unless my $path = path(shift())
53 6 22 if $try->is_file
59 6 34 if ref $_[-1] eq 'CODE'
61 0 40 if $ENV{'GIT_CODEOWNERS_DEBUG'}
76 13 27 wantarray ? :
91 14 0 unless $_ =~ /^"(.+)"$/
100 0 5 if $proc->wait != 0 or not $path
112 0 0 ref $item eq 'ARRAY' ? :
135 0 15 unless defined $args->{$formchar}
137 15 0 unless defined $alignment
140 15 0 if (ref $replacement eq 'CODE')
148 15 0 if (eval { do { require Unicode::GCString } }) { }
160 0 15 if ($replength > $min_width and $replength < $max_width)
165 0 15 if ($replength > $max_width)
170 0 15 if $padding < 0
173 0 15 if ($alignment eq '-')
191 0 6 UNIVERSAL::isa($_[0], 'HASH') ? :
192 6 0 unless exists $args->{'n'}
193 6 0 unless exists $args->{'t'}
194 6 0 unless exists $args->{'%'}
211 0 0 unless %unbackslash
229 9 3 if (defined $line)
231 9 0 if (my $filter = $self->{'filter'})
242 3 10 if (my $filter = $self->{'filter'})
250 36 40 unless my $pid = $self->{'pid'}
251 40 0 if (my $fh = $self->{'fh'})
257 0 40 if $ENV{'GIT_CODEOWNERS_DEBUG'}
264 0 40 if $global_destruction