Branch Coverage

blib/lib/Color/Swatch/ASE/Writer.pm
Criterion Covered Total %
branch 31 54 57.4


line true false branch
32 0 11 unless $struct->{'version'}
69 0 11 unless defined $signature
70 0 11 if ('ASEF' ne $signature)
80 102 0 if (ref $bytes) { }
87 29 73 if (not defined $format) { }
93 0 102 if (length $append ne $length)
96 0 102 if ($ENV{'TRACE_ASE'})
97 0 0 $format ? :
108 0 11 unless defined $version_major
109 0 11 unless defined $version_minor
122 8 8 unless defined $group
129 7 9 unless defined $label
132 0 16 if ($ENV{'TRACE_ASE'})
164 0 6 unless defined $model
165 0 6 unless exists $color_table->{$model}
172 9 0 if defined $_
0 3 if 3 != grep({length $_ if defined $_;} @color)
179 3 0 if defined $_
0 1 if 3 != grep({length $_ if defined $_;} @color)
187 4 0 if defined $_
0 1 if 4 != grep({length $_ if defined $_;} @color)
194 1 0 if defined $_
0 1 if 1 != grep({length $_ if defined $_;} @color)
201 6 0 unless defined $type
241 10 13 if ('group_start' eq $block->{'type'})
246 7 6 if ('group_end' eq $block->{'type'})
251 6 0 if ('color' eq $block->{'type'})