Condition Coverage

blib/lib/Text/AutoCSV.pm
Criterion Covered Total %
condition 188 291 64.6


and 2 conditions

line l !l condition
4055 113 58 0 do { @{$r;} >= 2 } && do { my $opt_ignore_ambiguous = _get_def($opts->{'ignore_ambiguous'}, $self->{'search_ignore_ambiguous'}, $DEF_SEARCH_IGNORE_AMBIGUOUS); return exists $opts->{'value_if_ambiguous'} ? $opts->{'value_if_ambiguous'} : $self->{'search_value_if_ambiguous'} unless $opt_ignore_ambiguous }

and 3 conditions

line !l l&&!r l&&r condition
246 23 0 104 defined $self->{'outh'} and $self->{'_close_outh_when_finished'}
256 60 13 8 defined $err_code and not $self->{'quiet'}
73 3 5 defined $err_code and not $self->{'quiet'} and $self->{'croak_if_error'}
280 44 7 30 $self->{'croak_if_error'} and not $dont_stop
369 1519 2 0 $ch eq $escape_char and $chnext eq $quote_char
381 3285 2 0 $ch eq $escape_char and $chnext eq $quote_char || exists $Seps{$chnext}
403 106 9 147 $Seps{';'} == 0 and $Seps{','} >= 1
0 9 106 $Seps{','} == 0 and $Seps{';'} >= 1
0 0 9 $Seps{','} == 0 and $Seps{';'} == 0
0 9 0 $Seps{','} == 0 and $Seps{';'} == 0 and $Seps{"\t"} >= 1
615 0 284 12 length $bom == 3 and $bom eq "\357\273\277"
682 327 149 18 defined $self->{'_status'} and $self->{'_status'} == 4
718 139 4085 0 $step != -1 and $step != 1
755 3253 464 367 $self->{'_status'} <= 1 and $n >= 2
3717 340 27 $self->{'_status'} <= 1 and $n >= 2 and $self->{'_int_one_pass'}
340 15 12 $self->{'_status'} <= 1 and $n >= 2 and $self->{'_int_one_pass'} and $self->get_pass_count >= 1
890 326 1 2 defined $self->{'fields_ar'} and not defined $self->{'fields_hr'}
1473 54 0 0 $_debug && $DEBUG_DATETIME_FORMATS
1604 934 34 10 @locales and $has_localized_item
1643 217 0 45 not $m_lower and $m_upper
217 0 45 not $m_lower and $m_upper and $a_lower
0 0 45 not $m_lower and $m_upper and $a_lower and not $a_upper
0 0 217 $m_lower and not $m_upper
0 0 217 $m_lower and not $m_upper and not $a_lower
0 0 217 $m_lower and not $m_upper and not $a_lower and $a_upper
1680 726 262 0 $format->index_slave >= 0 and $format->index_master >= 0
1752 84 2855 3 defined $refsub_is_datetime_empty and &$refsub_is_datetime_empty($v)
1791 0 7663 126 $records{$n}{$fid}->count_ko == 0 and $records{$n}{$fid}->has_searched_time
7663 49 77 $records{$n}{$fid}->count_ko == 0 and $records{$n}{$fid}->has_searched_time and $records{$n}{$fid}->has_found_time
1795 19 54 4 defined $fmt->parser && (defined $fmt->parser->parse_datetime($START . $v . $stop) ? 1 : 0)
1810 1152 2370 2557 defined $fmt->parser && ($is_ok ? 1 : 0)
1884 1101 0 117 $records{$n}{$mate}->count_ko == 0 and $records{$n}{$mate}->count_ok >= 1
1101 0 117 $records{$n}{$mate}->count_ko == 0 and $records{$n}{$mate}->count_ok >= 1 and $records{$n}{$fid}->count_ko == 0
1929 8989 83029 0 $ok == 0 and $ko == 0
1933 83029 2929 6060 $ok >= 1 and $ko == 0
1958 10 501 907 $count_gotit + $count_ambiguous + $count_nodate >= 1 and not $count_ambiguous
511 441 466 $count_gotit + $count_ambiguous + $count_nodate >= 1 and not $count_ambiguous and not $count_empty
1963 952 435 31 $can_start_recording_data and not $has_signaled_can_start_recording_data
1992 7926 241 298 $rec->count_ok >= 1 and $rec->count_ko == 0
2007 286 230 16 $#formats_ok < 0 and $tt == 0
2029 258 0 274 $is_ok and not defined $dates_formats[$n]
2072 0 0 0 defined $rec->locale and $rec->locale ne ''
2132 0 0 0 defined $rec and $rec->has_found_time
2140 0 0 0 defined $floc and $floc ne ''
2209 1980 0 0 $self->{'_debug'} && $DEBUG_DATETIME_FORMATS
2264 0 9181 12 defined $locale and $locale ne ''
2346 11 6 336 $has_headers and not defined $self->{'fields_column_names'}
2400 0 36 1353 defined $columns[$i] and $columns[$i] ne ''
2478 44 37 2 $edef->ef_type == $EF_LINK and $edef->link_remote_read eq '*'
2563 0 326 4 defined $dt_locale and $dt_locale ne ''
2576 0 326 4 defined $loc_out and $loc_out ne ''
2591 0 315 0 defined $refsub_is_datetime_empty and &$refsub_is_datetime_empty($_)
2601 315 0 0 $_debug and $DEBUG_DATETIME_FORMATS
315 0 0 $_debug and $DEBUG_DATETIME_FORMATS and $DEBUG_DATETIME_FORMATS_EVEN_MORE
2856 153 0 0 not defined $input and $no_undef
2875 344 40 56 not defined $value and $no_undef
2923 316 0 0 $verbose and not $keep_quiet
2991 1 0 21 @c == 3 and $c[2] ne ''
3022 14 1 4 exists $self->{'_obj'} and exists $self->{'_obj'}{$in_file}
3374 0 0 0 length $v == 1 and ord $v < 32
3483 0 4 36 defined $field and $field ne ''
3542 8 96 0 _is_utf8($enc) and $self->{'out_utf8_bom'}
3546 104 0 0 $OS_IS_PLAIN_WINDOWS and $FIX_PERLMONKS_823214
3588 98 0 1 defined $self->{'out_has_headers'} && !$self->{'out_has_headers'}
5 1 98 $self->{'has_headers'} and not defined $self->{'out_has_headers'} && !$self->{'out_has_headers'}
3874 72 0 489 exists $self->{$hash_name} and exists $self->{$projector_name}
4036 6 8 6 @{$r;} >= 2 and not $opt_ignore_ambiguous

or 3 conditions

line l !l&&r !l&&!r condition
381 0 0 2 $chnext eq $quote_char || exists $Seps{$chnext}
581 289 0 31 not defined $enc or $enc eq ''
601 0 0 320 not defined $in_file or $in_file eq ''
718 0 0 4224 not defined $step or $step != -1 and $step != 1
1463 11 43 233 @fields_dates or $self->{'fields_dates_auto'}
1685 0 0 262 $mate->index_master != $i or $mate->index_slave != -1
1693 0 0 262 $mate->index_slave != $i or $mate->index_master != -1
1809 3696 2383 5402 $is_ok or not $ignore_trailing_chars
1854 2697 1014 2368 $incr or $is_ok
1863 771 1224 702 $fmt->index_slave >= 0 or $fmt->index_master >= 0
2035 1 0 52 $check_empty != $count_empty or $check_nodate != $count_nodate
1 0 52 $check_empty != $count_empty or $check_nodate != $count_nodate or $check_ambiguous != $count_ambiguous
0 0 52 $check_empty != $count_empty or $check_nodate != $count_nodate or $check_ambiguous != $count_ambiguous or $check_gotit != $count_gotit
2042 0 0 1 $count_empty or $check_nodate
0 0 1 $count_empty or $check_nodate or $count_nodate
0 0 1 $count_empty or $check_nodate or $count_nodate or $check_ambiguous
0 0 1 $count_empty or $check_nodate or $count_nodate or $check_ambiguous or $count_ambiguous
0 0 1 $count_empty or $check_nodate or $count_nodate or $check_ambiguous or $count_ambiguous or $check_gotit
0 0 1 $count_empty or $check_nodate or $count_nodate or $check_ambiguous or $count_ambiguous or $check_gotit or $count_gotit
2591 0 37 315 not defined $_ or $_ eq ''
37 0 315 not defined $_ or $_ eq '' or defined $refsub_is_datetime_empty and &$refsub_is_datetime_empty($_)
2712 0 2 14 not defined $_ or $_ eq ''
2 11 3 not defined $_ or $_ eq '' or exists $named_fields{$_}
2727 0 0 8 not defined $_ or $_ eq ''
0 6 2 not defined $_ or $_ eq '' or exists $named_fields{$_}
3112 0 0 2 @c != 2 or $c[0] eq ''
0 0 2 @c != 2 or $c[0] eq '' or $c[1] eq ''
3588 98 4 2 $self->{'has_headers'} and not defined $self->{'out_has_headers'} && !$self->{'out_has_headers'} or $self->{'out_has_headers'}
3874 0 0 72 exists $self->{$hash_name} or exists $self->{$projector_name}