Branch Coverage

blib/lib/Term/Chrome.pm
Criterion Covered Total %
branch 50 68 73.5


line true false branch
50 0 49 if ref $color
56 11 38 exists $COLOR_CACHE{$c} ? :
76 47 70 if (defined $fg or defined $bg) { }
77 22 25 if @$self > 2
78 47 0 if (defined $fg)
81 0 1 $fg < 16 ? :
46 1 $fg < 8 ? :
82 14 33 if defined $bg
85 0 1 $bg < 16 ? :
13 1 $bg < 8 ? :
14 33 if defined $bg
87 3 67 unless @$self > 2
97 0 40 unless defined $other
99 0 40 unless $other->isa('Term::Chrome')
102 0 40 if defined $other->[0]
103 0 40 if defined $other->[1]
137 14 0 if $self->[0]
138 11 3 if $self->[1]
141 8 10 !$_ || $_ > 30 || !exists $reverse{$_} ? :
152 12 11 $_[2] ? :
163 0 10 unless (defined $_[0])
174 4 0 defined $c ? :
180 2 1 defined $c ? :
186 0 3 unless @$self > 2
209 4 0 $^V ge v5.18.0 ? :
215 0 21 unless ref $_[1] eq 'Term::Chrome::Color'
237 4 0 $^V ge v5.18.0 ? :
247 3 26 !$_ || $_ > 30 || !exists $reverse{$_} ? :
255 0 24 unless defined $other
257 0 24 unless &Scalar::Util::blessed($other)
260 23 1 if ($other->isa('Term::Chrome::Flag')) { }
1 0 elsif ($other->isa('Term::Chrome')) { }
262 3 20 unless $other->[2]
264 2 12 if $#$other == 8 or $self->[2] and $self->[2] < 30 and $other->[2] == $reverse{$self->[2]}