Condition Coverage

blib/lib/Spreadsheet/WriteExcel/Workbook.pm
Criterion Covered Total %
condition 48 134 35.8


and 3 conditions

line !l l&&!r l&&r condition
125 0 61 0 not ref $$self{'_filename'} and $$self{'_filename'} eq ''
609 182 18 0 $encoding == 1 and length($name) % 2
614 18 161 21 $encoding != 1 and $name =~ /$invalid_char/
622 507 92 7 $hi eq "\000" and $lo =~ /$invalid_char/
652 54 12 552 $encd_a == 0 and $encd_b == 0
54 0 12 $encd_a == 0 and $encd_b == 1
0 13 41 $encd_a == 1 and $encd_b == 0
0 0 13 $encd_a == 1 and $encd_b == 1
807 0 0 0 defined $_[1] and $_[1] =~ /^#(\w\w)(\w\w)(\w\w)/
929 0 0 0 $dir ne '' and not -d $dir
1121 38 11 63 exists $param{$property} and defined $param{$property}
1148 42 0 14 exists $param{$property} and defined $param{$property}
1281 1 0 60 not $$self{'_add_doc_properties'} and $$self{'_biffsize'} <= $maxsize
1595 0 0 0 unpack('n', $data) == 65496 and unpack('x6 A4', $data) eq 'JFIF' || unpack('x6 A4', $data) eq 'Exif'
1907 0 62 1284 not $$format{'_font_only'} and exists $fonts{$key}
2109 42 16 2 defined $rowmin and defined $colmin
2301 0 0 0 $encoding == 0 and $format =~ /\x80/
2767 147 16 2 defined $rowmin and defined $colmin
2908 0 0 0 not $split_string and $space_remaining % 2 != 1
0 0 0 $split_string and $space_remaining % 2 == 1
3110 0 0 0 not $split_string and $space_remaining % 2 != 1
0 0 0 $split_string and $space_remaining % 2 == 1

or 2 conditions

line l !l condition
42 61 0 $_[0] || ''
490 0 2 $arg{'embedded'} ||= 0
578 70 134 $_[0] || ''
579 21 183 $_[1] || 0
580 2 202 $_[2] || 0
812 0 0 $_[0] || 0
813 0 0 $_[1] || 0
814 0 0 $_[2] || 0
815 0 0 $_[3] || 0
927 0 0 shift() || ''
947 0 0 $_[0] || 1
968 0 0 $_[0] || 1
988 0 0 shift() || 0
1459 0 166 $$sheet{'_num_images'} || 0
1460 0 166 $$sheet{'_image_mso_size'} || 0
1689 0 0 $_[2] || 0

or 3 conditions

line l !l&&r !l&&!r condition
207 0 0 0 $$self{'_tempdir'} || 'File::Spec'->tmpdir
233 0 0 0 $$self{'_tempdir'} || 'File::Spec'->tmpdir
679 0 0 0 $hi_a or $hi_b
820 0 0 0 $index < 8 or $index > 64
826 0 0 0 $red < 0 or $red > 255
0 0 0 $green < 0 or $green > 255
0 0 0 $red < 0 or $red > 255 or ($green < 0 or $green > 255)
0 0 0 $blue < 0 or $blue > 255
0 0 0 $red < 0 or $red > 255 or ($green < 0 or $green > 255) or ($blue < 0 or $blue > 255)
1595 0 0 0 unpack('x6 A4', $data) eq 'JFIF' || unpack('x6 A4', $data) eq 'Exif'
1809 2 1 21 $marker == 65472 or $marker == 65474
2767 16 8 139 defined $rowmin or defined $colmin