Branch Coverage

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


line true false branch
33 0 11 unless $$struct{'version'}
70 0 11 unless defined $signature
71 0 11 if ('ASEF' ne $signature)
81 102 0 if (ref $bytes) { }
88 29 73 if (not defined $format) { }
94 0 102 if (length $append ne $length)
97 0 102 if ($ENV{'TRACE_ASE'})
98 0 0 $format ? :
109 0 11 unless defined $version_major
110 0 11 unless defined $version_minor
123 8 8 unless defined $group
130 7 9 unless defined $label
133 0 16 if ($ENV{'TRACE_ASE'})
165 0 6 unless defined $model
166 0 6 unless exists $$color_table{$model}
173 9 0 if defined $_
0 3 if 3 != grep({length $_ if defined $_;} @color)
180 3 0 if defined $_
0 1 if 3 != grep({length $_ if defined $_;} @color)
188 4 0 if defined $_
0 1 if 4 != grep({length $_ if defined $_;} @color)
195 1 0 if defined $_
0 1 if 1 != grep({length $_ if defined $_;} @color)
202 6 0 unless defined $type
242 10 13 if ('group_start' eq $$block{'type'})
247 7 6 if ('group_end' eq $$block{'type'})
252 6 0 if ('color' eq $$block{'type'})