Condition Coverage

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


and 2 conditions

line l !l condition
3600 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
242 23 0 104 defined $self->{'outh'} and $self->{'_close_outh_when_finished'}
252 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'}
270 44 7 30 $self->{'croak_if_error'} and not $dont_stop
350 1519 2 0 $ch eq $escape_char and $chnext eq $quote_char
359 3285 2 0 $ch eq $escape_char and $chnext eq $quote_char || exists $Seps{$chnext}
374 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
571 0 284 12 length $bom == 3 and $bom eq "\357\273\277"
636 327 149 18 defined $self->{'_status'} and $self->{'_status'} == 4
670 139 4084 0 $step != -1 and $step != 1
699 3252 464 367 $self->{'_status'} <= 1 and $n >= 2
3716 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
820 326 1 2 defined $self->{'fields_ar'} and not defined $self->{'fields_hr'}
1366 54 0 0 $_debug && $DEBUG_DATETIME_FORMATS
1486 934 34 10 @locales and $has_localized_item
1524 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
1556 726 262 0 $format->index_slave >= 0 and $format->index_master >= 0
1619 84 9319 3 defined $refsub_is_datetime_empty and &$refsub_is_datetime_empty($v)
1651 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
1654 19 54 4 defined $fmt->parser && (defined $fmt->parser->parse_datetime($START . $v . $stop) ? 1 : 0)
1666 2768 2370 9021 defined $fmt->parser && ($is_ok ? 1 : 0)
1715 4333 0 117 $records{$n}{$mate}->count_ko == 0 and $records{$n}{$mate}->count_ok >= 1
4333 0 117 $records{$n}{$mate}->count_ko == 0 and $records{$n}{$mate}->count_ok >= 1 and $records{$n}{$fid}->count_ko == 0
1751 21917 178373 0 $ok == 0 and $ko == 0
1754 178373 7777 14140 $ok >= 1 and $ko == 0
1776 10 2117 2523 $count_gotit + $count_ambiguous + $count_nodate >= 1 and not $count_ambiguous
2127 441 2082 $count_gotit + $count_ambiguous + $count_nodate >= 1 and not $count_ambiguous and not $count_empty
1780 2568 2051 31 $can_start_recording_data and not $has_signaled_can_start_recording_data
1805 7926 241 298 $rec->count_ok >= 1 and $rec->count_ko == 0
1820 286 230 16 $#formats_ok < 0 and $tt == 0
1838 258 0 274 $is_ok and not defined $dates_formats[$n]
1869 0 0 0 defined $rec->locale and $rec->locale ne ''
1911 0 0 0 defined $rec and $rec->has_found_time
1917 0 0 0 defined $floc and $floc ne ''
1965 1980 0 0 $self->{'_debug'} && $DEBUG_DATETIME_FORMATS
2015 0 9181 12 defined $locale and $locale ne ''
2086 11 6 336 $has_headers and not defined $self->{'fields_column_names'}
2130 0 36 1353 defined $columns[$i] and $columns[$i] ne ''
2199 44 37 2 $edef->ef_type == $EF_LINK and $edef->link_remote_read eq '*'
2279 0 326 4 defined $dt_locale and $dt_locale ne ''
2285 0 326 4 defined $loc_out and $loc_out ne ''
2295 0 315 0 defined $refsub_is_datetime_empty and &$refsub_is_datetime_empty($_)
2303 315 0 0 $_debug and $DEBUG_DATETIME_FORMATS
315 0 0 $_debug and $DEBUG_DATETIME_FORMATS and $DEBUG_DATETIME_FORMATS_EVEN_MORE
2532 153 0 0 not defined $input and $no_undef
2546 344 40 56 not defined $value and $no_undef
2593 316 0 0 $verbose and not $keep_quiet
2653 1 0 21 @c == 3 and $c[2] ne ''
2682 14 1 4 exists $self->{'_obj'} and exists $self->{'_obj'}{$in_file}
3003 0 0 0 length $v == 1 and ord $v < 32
3094 0 4 36 defined $field and $field ne ''
3148 8 96 0 _is_utf8($enc) and $self->{'out_utf8_bom'}
3152 104 0 0 $OS_IS_PLAIN_WINDOWS and $FIX_PERLMONKS_823214
3188 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'}
3445 72 0 489 exists $self->{$hash_name} and exists $self->{$projector_name}
3586 6 8 6 @{$r;} >= 2 and not $opt_ignore_ambiguous

or 3 conditions

line l !l&&r !l&&!r condition
359 0 0 2 $chnext eq $quote_char || exists $Seps{$chnext}
539 289 0 31 not defined $enc or $enc eq ''
559 0 0 320 not defined $in_file or $in_file eq ''
670 0 0 4223 not defined $step or $step != -1 and $step != 1
1357 11 43 233 @fields_dates or $self->{'fields_dates_auto'}
1561 0 0 262 $mate->index_master != $i or $mate->index_slave != -1
1568 0 0 262 $mate->index_slave != $i or $mate->index_master != -1
1665 11776 2383 5402 $is_ok or not $ignore_trailing_chars
1697 9161 2630 2368 $incr or $is_ok
1704 2387 4456 2318 $fmt->index_slave >= 0 or $fmt->index_master >= 0
1842 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
1846 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
2295 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($_)
2396 0 2 14 not defined $_ or $_ eq ''
2 11 3 not defined $_ or $_ eq '' or exists $named_fields{$_}
2410 0 0 8 not defined $_ or $_ eq ''
0 6 2 not defined $_ or $_ eq '' or exists $named_fields{$_}
2760 0 0 2 @c != 2 or $c[0] eq ''
0 0 2 @c != 2 or $c[0] eq '' or $c[1] eq ''
3188 98 4 2 $self->{'has_headers'} and not defined $self->{'out_has_headers'} && !$self->{'out_has_headers'} or $self->{'out_has_headers'}
3445 0 0 72 exists $self->{$hash_name} or exists $self->{$projector_name}