Branch Coverage

blib/lib/Term/ANSIColor/Concise.pm
Criterion Covered Total %
branch 78 116 67.2


line true false branch
54 12 294 if ($LINEAR_256) { }
64 0 0 if ($i == 0) { }
0 0 elsif ($base == 6) { }
0 0 elsif ($base == 12) { }
0 0 elsif ($base == 24) { }
74 8 4 if ($code =~ /^([0-5])([0-5])([0-5])$/u) { }
4 0 elsif (my($n) = $code =~ /^L(\d+)/iu) { }
78 0 4 if $n > 25
79 2 2 if ($n == 0 or $n == 25) { }
88 2 10 defined $gray ? :
95 2 102 if ($rx != 0 and $rx != 255 and $rx == $gx and $rx == $bx) { }
96 0 2 if ($LINEAR_GRAY) { }
101 0 0 if ($gray < 0)
112 2 102 defined $gray ? :
119 0 25 if $len == 0 or $len % 3
127 31 90 if ($mod)
130 16 104 if ($RGB24) { }
208 17 204 if ($+{'toggle'}) { }
0 204 elsif ($+{'reset'}) { }
25 179 elsif ($+{'hex'}) { }
6 173 elsif (my $dec = $+{'dec'}) { }
21 152 elsif (my $hsl = $+{'hsl'}) { }
7 145 elsif (my $lch = $+{'lch'}) { }
12 133 elsif (my $lab = $+{'lab'}) { }
51 82 elsif ($+{'name'}) { }
12 70 elsif ($+{'c256'}) { }
24 46 elsif ($+{'c16'}) { }
37 9 elsif ($+{'efct'}) { }
9 0 elsif ($+{'csi'}) { }
0 0 elsif (my $err = $+{'err'}) { }
220 0 6 if grep {$_ > 255;} @rgb
224 0 21 unless Color()->can("hsl")
230 0 7 unless Color()->can("lch")
236 0 12 unless Color()->can("lab")
244 50 1 if (my(@rgb) = $colornames->rgb($+{'name'})) { }
258 9 28 $efct =~ s/^~//u ? :
259 35 2 if (defined(my $n = $numbers{$efct}))
265 3 6 if ($+{'csi_abbr'}) { }
279 3 216 if ($SPLIT_ANSI)
281 2 1 if (defined $index)
342 0 154 if (my $seq = $other_sequence{$name})
345 0 154 unless my $c = $csi_terminator{$name}
346 0 148 if ($name eq "SGR" and @_ == 1 and $_[0] == 0)
354 0 0 unless my $c = $csi_terminator{$name}
365 11 143 if (ref $item eq 'ARRAY') { }
382 2 11 $start eq '' ? :
383 2 9 if ($start =~ /(.*)(\e\[[0;]*K)(.*)/u) { }
385 0 2 if ($3) { }
391 0 9 if ($NO_RESET_EL) { }
415 0 41 ref $spec eq 'ARRAY' ? :
420 0 41 if @_
421 0 41 wantarray ? :
436 0 41 if (ref $color eq 'CODE') { }
0 41 elsif (builtin::blessed($color) and $color->can('call')) { }
18 23 elsif ($NO_COLOR) { }
0 23 elsif ($NO_CUMULATIVE) { }
448 0 0 if ($el) { }
458 0 23 if ($el) { }