Branch Coverage

blib/lib/Term/Chrome.pm
Criterion Covered Total %
branch 31 44 70.4


line true false branch
49 0 50 if ref $color
55 11 39 exists $COLOR_CACHE{$c} ? :
73 41 33 if (defined $fg or defined $bg)
74 18 23 if @$self > 2
75 41 0 if (defined $fg)
78 0 1 $fg < 16 ? :
40 1 $fg < 8 ? :
79 12 29 if defined $bg
82 0 1 $bg < 16 ? :
11 1 $bg < 8 ? :
12 29 if defined $bg
92 0 35 unless defined $other
94 0 35 unless $other->isa('Term::Chrome')
97 0 35 if defined $other->[0]
98 0 35 if defined $other->[1]
111 11 11 $_[2] ? :
124 0 7 unless (defined $_[0])
135 4 0 defined $c ? :
141 2 1 defined $c ? :
147 0 3 unless @$self > 2
157 4 0 $^V ge v5.18.0 ? :
174 0 18 unless ref $_[1] eq 'Term::Chrome::Color'