Condition Coverage

blib/lib/Spreadsheet/Edit/IO.pm
Criterion Covered Total %
condition 41 181 22.6


and 3 conditions

line !l l&&!r l&&r condition
77 0 0 0 $^O =~ /MSWin/ and $uid == (eval {
0 0 0 $^O =~ /MSWin/ and $uid == (eval {
441 4862638 0 0 not defined $fullname and $is_MSWin
456 0 0 377992 defined $fullname && -r _ && -x _
0 377988 4 not $is_MSWin and (stat _)[7] == 0
703 0 0 0 $$opts{"allsheets"} and not &_openlibre_supports_allsheets()
704 0 0 0 $$opts{"sheetname"} and not &_openlibre_supports_named_sheet()
1095 2 0 0 $embedded_sheetname and $sheetname
2 0 0 $embedded_sheetname and $sheetname and $embedded_sheetname ne $sheetname
1149 0 0 0 defined $sheetname and $sheetname ne $opts{"sheetname"}
1158 2 0 0 $key && $key eq 'inpath'
1453 0 0 0 $$opts{"sheetname"} and not &_openlibre_supports_named_sheet()
1470 0 0 0 $$opts{"sheetname"} and &_ssconvert_supports_writing($$opts{"cvt_to"})
1602 0 0 0 $opts{"outpath"} and -e $opts{"outpath"}
0 0 0 $opts{"outpath"} and -e $opts{"outpath"} and not -d _
1697 2 0 0 exists $opts{"path"} and not $opts{"silent"}

or 2 conditions

line l !l condition
71 4 0 eval {
77 0 0 eval {
79 0 0 $ENV{'LOGONSERVER'} || ''
132 0 0 $lines[-1] // ""
348 0 0 $SIG{$_} // undef
524 0 1 &openlibreoffice_path() // (return $hash = {"available", 0})
755 0 0 $$cf[$ix] // 1
773 0 0 $$opts{"sep_char"} // ","
0 0 $$opts{"quote_char"} // "\""
860 0 0 $$opts{"sep_char"} // ","
0 0 $$opts{"quote_char"} // "\""
1136 2 2 $opts{$thiskey} || (next)
1171 0 0 shift() // ""
1598 0 0 $opts{"cvt_to"} // ""

or 3 conditions

line l !l&&r !l&&!r condition
71 0 0 4 $uid //= eval {
73 1 3 0 $$answer{$uid} //= do {
75 3 0 0 getpwuid $uid // $uid
77 3 0 0 eval {
163 0 0 0 delete $$opts{"lockfile_fh"} // &oops()
336 0 0 0 not $Saved_Sigs{$_[0]} or $Saved_Sigs{$_[0]} eq "DEFAULT"
450 377216 776 4484646 -d _ or -l _
456 0 4 377988 not defined $fullname && -r _ && -x _ or not $is_MSWin and (stat _)[7] == 0
4 0 377988 not defined $fullname && -r _ && -x _ or not $is_MSWin and (stat _)[7] == 0 or /\$/
4 0 377988 not defined $fullname && -r _ && -x _ or not $is_MSWin and (stat _)[7] == 0 or /\$/ or not -r $fullname
0 630 377358 not defined $fullname && -r _ && -x _ or not $is_MSWin and (stat _)[7] == 0 or /\$/ or not -r $fullname or not -x _
630 0 377358 not defined $fullname && -r _ && -x _ or not $is_MSWin and (stat _)[7] == 0 or /\$/ or not -r $fullname or not -x _ or m[^/snap/(?!.*ffice)]
630 12 377346 not defined $fullname && -r _ && -x _ or not $is_MSWin and (stat _)[7] == 0 or /\$/ or not -r $fullname or not -x _ or m[^/snap/(?!.*ffice)] or m[^/(proc|dev|sys|tmp|boot|run|lost+found|usr/(include|src))$]
486 0 0 0 &first(sub {
579 0 0 0 &can_extract_allsheets() or &_openlibre_supports_named_sheet()
622 0 0 0 $_[0]{"outpath"} // &oops()
646 1 1 0 $tempdir //= do {
707 0 0 0 &openlibreoffice_path() // &oops()
746 0 0 0 $$opts{"soffice_infilter"} //= do {
756 0 0 0 /^([123459]|10)$/ or s/^standard$/1/i
0 0 0 /^([123459]|10)$/ or s/^standard$/1/i or s/^text$/2/i
0 0 0 /^([123459]|10)$/ or s/^standard$/1/i or s/^text$/2/i or s[^M+/D+/Y+$][3]i
0 0 0 /^([123459]|10)$/ or s/^standard$/1/i or s/^text$/2/i or s[^M+/D+/Y+$][3]i or s[^D+/M+/Y+$][4]i
0 0 0 /^([123459]|10)$/ or s/^standard$/1/i or s/^text$/2/i or s[^M+/D+/Y+$][3]i or s[^D+/M+/Y+$][4]i or s[^Y+/M+/D+$][5]i
0 0 0 /^([123459]|10)$/ or s/^standard$/1/i or s/^text$/2/i or s[^M+/D+/Y+$][3]i or s[^D+/M+/Y+$][4]i or s[^Y+/M+/D+$][5]i or s/^ignore$/9/i
0 0 0 /^([123459]|10)$/ or s/^standard$/1/i or s/^text$/2/i or s[^M+/D+/Y+$][3]i or s[^D+/M+/Y+$][4]i or s[^Y+/M+/D+$][5]i or s/^ignore$/9/i or s/^US.*English$/10/i
812 0 0 0 $$opts{"soffice_outfilter"} //= do {
1071 0 4 0 $base // $p->basename
1097 0 0 2 $sheetname //= $embedded_sheetname
1122 2 0 0 $leading_inpath // croak("No inpath was specified")
1176 0 0 0 /^:(utf8)$/ or /^:encoding\(([^\)]+)\)$/
1595 2 0 0 $opts{"cvt_from"} eq "csv" or $opts{"cvt_to"} eq "csv"
1643 0 0 0 $@ or not $s
1698 2 0 0 $opts{"inpath"} //= delete $opts{"path"}
1707 2 0 0 $$h{"outpath"} // &oops()