Branch Coverage

blib/lib/App/Colorist/Colorizer.pm
Criterion Covered Total %
branch 43 68 63.2


line true false branch
145 0 1 unless -d "$_/$config"
146 1 0 if -f "$_/$config/$ruleset.pl"
150 0 1 unless defined $path
170 0 1 unless -d "$_/$config"
171 1 0 if -f "$_/$config/$colorset.yml"
175 0 1 unless defined $path
228 1 14 if ((stat $self->colorset_file)[9] > $self->colors_mtime)
244 0 1 unless $rules = do "$ruleset_file"
255 1 14 if ((stat $self->ruleset_file)[9] > $self->rules_mtime)
277 15 0 if ($self->debug)
289 0 190 unless defined $fg
290 190 0 if ($self->debug) { }
302 190 0 unless defined $bg
304 0 0 if ($self->debug) { }
331 0 0 @{$c;} == 3 ? :
0 0 @{$c;} == 1 ? :
190 0 !ref($c) ? :
190 190 !defined($c) ? :
352 0 190 unless defined $c
355 0 190 if (ref $c eq 'HASH') { }
388 13 2 if (defined $buffer and $buffer =~ /\n/)
399 1 3 unless $s->count > 0
408 2 1 unless defined $line
414 0 3 unless (defined $eof)
415 0 0 if ($! == 11) { }
426 1 2 if $eof == 0
429 2 1 if ($line =~ /\n/) { }
469 15 51 if (/^$rule$/)
500 11 0 $$b[1] eq 'Y' ? :
23 900 unless $$a[0] <=> $$b[0]
517 175 175 if ($d eq 'X') { }
518 160 15 if (defined $n) { }
529 160 15 if (@stack) { }
537 350 0 if (defined $color)