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 40 33 if (defined $fg or defined $bg)
74 17 23 if @$self > 2
75 40 0 if (defined $fg)
78 0 1 $fg < 16 ? :
39 1 $fg < 8 ? :
79 11 29 if defined $bg
82 0 1 $bg < 16 ? :
10 1 $bg < 8 ? :
11 29 if defined $bg
92 0 33 unless defined $other
94 0 33 unless $other->isa('Term::Chrome')
97 0 33 if defined $other->[0]
98 0 33 if defined $other->[1]
111 11 11 $_[2] ? :
124 0 6 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 17 unless ref $_[1] eq 'Term::Chrome::Color'