Branch Coverage

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


line true false branch
96 0 25 @_ == 1 ? :
100 3 22 if $self->{'auto_reverse'}
133 9 1284 unless defined $codes and length $codes
164 584 1533 if ($attr eq 'clear') { }
8 1525 elsif ($attr eq 'reverse_off') { }
4 1521 elsif ($attr eq 'reset_foreground') { }
1 1520 elsif ($attr eq 'reset_background') { }
181 191 1329 if exists $FOREGROUND{$attr}
183 91 1429 if exists $BACKGROUND{$attr}
201 31 1 if $self->{'remove_escapes'}
210 1228 19 if $len
219 24 1223 $self->{'process'} ? :
222 22 10 if $last_pos < length $orig
235 25 1 if $self->{'auto_reverse'}
245 24 71 if ($attr eq 'reverse') { }
28 43 elsif ($FOREGROUND{$attr}) { }
10 33 elsif ($BACKGROUND{$attr}) { }
259 24 13 if ($rev)
262 6 18 unless defined $fg
263 16 8 unless defined $bg
265 24 0 if defined $fg
266 24 0 if defined $bg
301 3 2 unless @_
308 1 3 unless grep {$arg eq $_;} @EXPORT_OK