Condition Coverage

blib/lib/App/Codeowners/Formatter/String.pm
Criterion Covered Total %
condition 11 25 44.0


and 3 conditions

line !l l&&!r l&&r condition
56 0 0 0 defined $ENV{'COLOR_DEPTH'} and not $ENV{'COLOR_DEPTH'}

or 2 conditions

line l !l condition
33 0 15 shift() || ''
41 0 0 $1 || ''
76 12 12 shift() || ''
77 6 18 shift() || ''
121 4 2 $self->{'owner_color'} ||= sub { return unless my $owner = shift(); $owner_colors{$owner} ||= do { $num = ($num + 1) % scalar(@contrasting_colors); $contrasting_colors[$num] }; }

or 3 conditions

line l !l&&r !l&&!r condition
56 4 0 0 $ENV{'NO_COLOR'} or defined $ENV{'COLOR_DEPTH'} and not $ENV{'COLOR_DEPTH'}
83 0 4 0 $color // &$gencolor($_)
86 0 0 11 $color // &$gencolor($value)
117 0 4 0 $owner_colors{$owner} ||= do { $num = ($num + 1) % scalar(@contrasting_colors); $contrasting_colors[$num] }