blib/lib/Spreadsheet/WriteExcel/Worksheet.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 127 | 288 | 44.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
242 | 0 | 0 | 0 | $$self{'_index'} == 0 and $^W |
1209 | 7 | 4 | 0 | $token ne 'items' and $token ne '%' |
1229 | 60 | 0 | 0 | not $operator and $tokens[0] |
1239 | 4 | 2 | 0 | $operator != 2 and $operator != 5 |
1265 | 40 | 15 | 5 | $operator == 2 and $token =~ /[*?]/ |
1605 | 36 | 0 | 0 | $$self{'_leading_zeros'} and $token =~ /^0\d+$/ |
35 | 1 | 0 | $token =~ m[^[fh]tt?ps?://] and not $$self{'_writing_url'} | |
36 | 0 | 0 | $token =~ /^mailto:/ and not $$self{'_writing_url'} | |
36 | 0 | 0 | $token =~ /^(?:in|ex)ternal:/ and not $$self{'_writing_url'} | |
2523 | 0 | 1 | 0 | @pairs and $pairs[-2] eq 'result' |
3252 | 295 | 165 | 56 | $year % 4 == 0 and $year % 100 |
3272 | 200 | 3 | 295 | $date_1904 == 0 and $days > 59 |
3943 | 0 | 0 | 0 | $x != 0 and $y != 0 |
3944 | 0 | 0 | 0 | $x != 0 and $y == 0 |
3945 | 0 | 0 | 0 | $x == 0 and $y != 0 |
3946 | 0 | 0 | 0 | $x == 0 and $y == 0 |
4263 | 3 | 0 | 0 | $rwFirst == $rwLast and $colFirst == $colLast |
4295 | 4 | 0 | 0 | @_ != 6 and @_ != 7 |
4319 | 3 | 0 | 0 | $rwFirst == $rwLast and $colFirst == $colLast |
4337 | 10 | 4 | 3 | $row == $rwFirst and $col == $colFirst |
4629 | 135 | 0 | 0 | $$self{'_protect'} and defined $$self{'_password'} |
5339 | 26 | 2 | 1 | defined $operator_2 and $operator_2 == 2 |
5344 | 26 | 3 | 0 | defined $operator_2 and $operator_2 == 22 |
5816 | 0 | 0 | 0 | $i == 0 and not $num_objects |
5871 | 0 | 0 | 0 | $$self{'_encoding'} and $] >= 5.008 |
5956 | 6 | 0 | 3 | $i == 0 and not $num_objects |
6057 | 0 | 0 | 1 | $i == 0 and not $num_objects |
7114 | 5 | 38 | 0 | @_ != 5 and @_ != 3 |
7303 | 4 | 0 | 1 | defined $$param{'maximum'} and $$param{'maximum'} =~ /T/ |
7457 | 40 | 1 | 2 | $validation_type == 3 and ref $formula_1 eq 'ARRAY' |
line | l | !l | condition |
---|---|---|---|
577 | 4 | 1 | $width ||= 0 |
720 | 0 | 0 | $_[0] || 0 |
733 | 0 | 0 | $_[0] || '' |
734 | 0 | 0 | $_[1] || 0.5 |
735 | 0 | 0 | $_[2] || 0 |
769 | 0 | 0 | $_[0] || '' |
770 | 0 | 0 | $_[1] || 0.5 |
771 | 0 | 0 | $_[2] || 0 |
1340 | 0 | 0 | $_[0] || 0 |
1341 | 0 | 0 | $_[1] || 0 |
1382 | 0 | 0 | $_[0] || 100 |
1403 | 0 | 0 | $_[0] || 100 |
1536 | 0 | 0 | $_[0] || 0 |
1537 | 0 | 0 | $_[1] || 0 |
2025 | 0 | 0 | $_[3] || 0 |
3196 | 205 | 1 | $4 || 0 |
3304 | 0 | 15 | $_[3] || 0 |
3305 | 0 | 15 | $_[4] || 0 |
3306 | 0 | 15 | $_[5] || 0 |
3676 | 5 | 0 | $_[0] || 0 |
3677 | 5 | 0 | $_[1] || 0 |
3678 | 4 | 1 | $_[2] || 8.43 |
3700 | 0 | 5 | $_[4] || 0 |
3701 | 0 | 5 | $_[5] || 0 |
3702 | 0 | 5 | $_[6] || 0 |
3910 | 0 | 0 | $_[0] || 0 |
3911 | 0 | 0 | $_[1] || 0 |
4845 | 0 | 0 | $_[3] || 0 |
4846 | 0 | 0 | $_[4] || 0 |
4847 | 0 | 0 | $_[5] || 1 |
4848 | 0 | 0 | $_[6] || 1 |
4901 | 0 | 0 | $_[3] || 0 |
4902 | 0 | 0 | $_[4] || 0 |
4903 | 0 | 0 | $_[5] || 1 |
4904 | 0 | 0 | $_[6] || 1 |
6269 | 1 | 1 | $_[2] || 80 |
6762 | 0 | 2 | $_[1] || 16 |
6763 | 0 | 2 | $_[2] || 0 |
6790 | 0 | 2 | $_[1] || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
217 | 0 | 0 | 0 | $$self{'_tempdir'} || 'File::Spec'->tmpdir |
243 | 0 | 0 | 0 | $$self{'_tempdir'} || 'File::Spec'->tmpdir |
950 | 8 | 0 | 1 | $_[1] || $_[0] |
975 | 3 | 0 | 2 | $_[1] || $_[0] |
1060 | 0 | 0 | 0 | $col < $col_first or $col > $col_last |
1068 | 0 | 0 | 0 | @tokens == 3 or @tokens == 7 |
1199 | 0 | 0 | 11 | $value =~ /\D/ or $value < 1 |
0 | 0 | 11 | $value =~ /\D/ or $value < 1 or $value > 500 | |
1385 | 0 | 0 | 0 | $scale < 10 or $scale > 400 |
1406 | 0 | 0 | 0 | $scale < 10 or $scale > 400 |
1685 | 0 | 0 | 0 | $error ||= $ret |
1731 | 0 | 0 | 0 | $error ||= $ret |
2692 | 0 | 1 | 0 | $_[6] || $$self{'_url_format'} |
2780 | 0 | 0 | 0 | $_[6] || $$self{'_url_format'} |
2883 | 0 | 0 | 0 | $_[6] || $$self{'_url_format'} |
3013 | 0 | 0 | 0 | $_[6] || $$self{'_url_format'} |
3252 | 56 | 155 | 305 | $year % 4 == 0 and $year % 100 or $year % 400 == 0 |
3257 | 6 | 0 | 510 | $year < $epoch or $year > 9999 |
3258 | 4 | 2 | 504 | $month < 1 or $month > 12 |
3259 | 2 | 4 | 498 | $day < 1 or $day > $mdays[$month - 1] |
3440 | 65 | 3 | 22541 | not defined $$self{'_dim_rowmin'} or $row < $$self{'_dim_rowmin'} |
3444 | 65 | 20470 | 2074 | not defined $$self{'_dim_rowmax'} or $row > $$self{'_dim_rowmax'} |
3451 | 61 | 1 | 22532 | not defined $$self{'_dim_colmin'} or $col < $$self{'_dim_colmin'} |
3455 | 61 | 8 | 22525 | not defined $$self{'_dim_colmax'} or $col > $$self{'_dim_colmax'} |
3800 | 0 | 0 | 133 | $_[2] || $rwFirst |
3801 | 0 | 0 | 133 | $_[3] || $colFirst |
4258 | 3 | 0 | 0 | $_[2] || $rwFirst |
4259 | 3 | 0 | 0 | $_[3] || $colFirst |
4692 | 6 | 1 | 28 | $$self{'_table'}[$row] or $$self{'_row_data'}{$row} |
4721 | 0 | 7 | 0 | @written_rows == 32 or $row == $$self{'_dim_rowmax'} - 1 |
5356 | 4 | 1 | 2 | $operator_1 == 30 or $operator_1 == 31 |
5360 | 1 | 1 | 5 | $operator_1 == 31 or $operator_1 == 33 |
5424 | 10 | 4 | 16 | $operator == 2 or not $token =~ /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/ |
6869 | 4 | 0 | 2 | $_[3] || $$self{'_comments_author'} |
6870 | 2 | 0 | 4 | $_[4] || $$self{'_comments_author_enc'} |
7211 | 3 | 1 | 38 | $$param{'validate'} == 3 or $$param{'validate'} == 7 |
7255 | 22 | 1 | 19 | $$param{'criteria'} == 0 or $$param{'criteria'} == 1 |
7290 | 3 | 2 | 37 | $$param{'validate'} == 4 or $$param{'validate'} == 5 |
7529 | 155 | 1 | 24 | not defined $string or $string eq '' |
7574 | 24 | 1 | 73 | not defined $formula or $formula eq '' |