Branch Coverage

blib/lib/Parse/ANSIColor/Tiny.pm
Criterion Covered Total %
branch 45 48 93.7


line true false branch
97 0 25 @_ == 1 ? :
101 3 22 if $self->{'auto_reverse'}
134 9 1287 unless defined $codes and length $codes
165 584 1540 if ($attr eq 'clear') { }
8 1532 elsif ($attr eq 'reverse_off') { }
5 1527 elsif ($attr eq 'reset_foreground') { }
2 1525 elsif ($attr eq 'reset_background') { }
182 706 819 if exists $FOREGROUND{$attr}
184 605 920 if exists $BACKGROUND{$attr}
202 32 1 if $self->{'remove_escapes'}
211 1231 19 if $len
220 24 1226 $self->{'process'} ? :
223 23 10 if $last_pos < length $orig
236 25 1 if $self->{'auto_reverse'}
246 24 71 if ($attr eq 'reverse') { }
28 43 elsif ($FOREGROUND{$attr}) { }
10 33 elsif ($BACKGROUND{$attr}) { }
260 24 13 if ($rev)
263 6 18 unless defined $fg
264 16 8 unless defined $bg
266 24 0 if defined $fg
267 24 0 if defined $bg
302 3 2 unless @_
309 1 3 unless grep {$arg eq $_;} @EXPORT_OK