Branch Coverage

blib/lib/String/Tagged/Terminal.pm
Criterion Covered Total %
branch 35 48 72.9


line true false branch
110 1 0 $_[1] ? :
173 6 192 if $tags{$tag} and not $pen{$tag}
174 5 187 if not $tags{$tag} and $pen{$tag}
183 2 31 if (defined $pen{$tag} and not defined $tags{$tag}) { }
0 31 elsif (defined $pen{$tag} and defined $tags{$tag} and $pen{$tag} == $tags{$tag}) { }
2 29 elsif (defined $tags{$tag}) { }
192 0 2 if $val > $max
205 7 59 if defined $val
207 0 66 if (defined $pen{$tag} and not defined $val) { }
0 66 elsif (defined $pen{$tag} and defined $val and $pen{$tag} == $val) { }
7 59 elsif (defined $val) { }
216 5 2 if ($val < 8) { }
1 1 elsif ($val < 16) { }
233 0 33 if (defined $pen{'sizepos'} and not defined $tags{'sizepos'}) { }
0 33 elsif (defined $pen{'sizepos'} and defined $tags{'sizepos'} and $pen{'sizepos'} eq $tags{'sizepos'}) { }
0 33 elsif (defined(my $val = $tags{'sizepos'})) { }
240 0 0 if ($val eq 'sub') { }
0 0 elsif ($val eq 'super') { }
250 15 18 if (@sgr and %pen) { }
7 11 elsif (@sgr) { }
259 1 12 $opts{'no_color'} ? :
261 6 7 if %pen
288 1 0 $_[1] == 1 ? :
321 3 2 if ($options{'win32'}) { }