Condition Coverage

blib/lib/Text/AutoCSV.pm
Criterion Covered Total %
condition 188 288 65.2


and 2 conditions

line l !l condition
3549 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
241 23 0 103 defined $self->{'outh'} and $self->{'_close_outh_when_finished'}
251 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'}
269 44 7 30 $self->{'croak_if_error'} and not $dont_stop
349 1519 2 0 $ch eq $escape_char and $chnext eq $quote_char
358 3246 2 0 $ch eq $escape_char and $chnext eq $quote_char || exists $Seps{$chnext}
373 102 9 144 $Seps{';'} == 0 and $Seps{','} >= 1
0 9 102 $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
564 0 277 12 length $bom == 3 and $bom eq "\357\273\277"
629 320 149 18 defined $self->{'_status'} and $self->{'_status'} == 4
663 139 4017 0 $step != -1 and $step != 1
692 3198 457 361 $self->{'_status'} <= 1 and $n >= 2
3655 334 27 $self->{'_status'} <= 1 and $n >= 2 and $self->{'_int_one_pass'}
334 15 12 $self->{'_status'} <= 1 and $n >= 2 and $self->{'_int_one_pass'} and $self->get_pass_count >= 1
811 319 1 2 defined $self->{'fields_ar'} and not defined $self->{'fields_hr'}
1353 51 0 0 $_debug && $DEBUG_DATETIME_FORMATS
1473 868 34 10 @locales and $has_localized_item
1511 202 0 42 not $m_lower and $m_upper
202 0 42 not $m_lower and $m_upper and $a_lower
0 0 42 not $m_lower and $m_upper and $a_lower and not $a_upper
0 0 202 $m_lower and not $m_upper
0 0 202 $m_lower and not $m_upper and not $a_lower
0 0 202 $m_lower and not $m_upper and not $a_lower and $a_upper
1543 678 244 0 $format->index_slave >= 0 and $format->index_master >= 0
1606 84 9308 3 defined $refsub_is_datetime_empty and &$refsub_is_datetime_empty($v)
1638 0 7480 124 $records{$n}{$fid}->count_ko == 0 and $records{$n}{$fid}->has_searched_time
7480 47 77 $records{$n}{$fid}->count_ko == 0 and $records{$n}{$fid}->has_searched_time and $records{$n}{$fid}->has_found_time
1641 19 54 4 defined $fmt->parser && (defined $fmt->parser->parse_datetime($START . $v . $stop) ? 1 : 0)
1653 2759 2370 9015 defined $fmt->parser && ($is_ok ? 1 : 0)
1702 4333 0 114 $records{$n}{$mate}->count_ko == 0 and $records{$n}{$mate}->count_ok >= 1
4333 0 114 $records{$n}{$mate}->count_ko == 0 and $records{$n}{$mate}->count_ok >= 1 and $records{$n}{$fid}->count_ko == 0
1738 21907 178141 0 $ok == 0 and $ko == 0
1741 178141 7770 14137 $ok >= 1 and $ko == 0
1763 10 2117 2518 $count_gotit + $count_ambiguous + $count_nodate >= 1 and not $count_ambiguous
2127 441 2077 $count_gotit + $count_ambiguous + $count_nodate >= 1 and not $count_ambiguous and not $count_empty
1767 2568 2049 28 $can_start_recording_data and not $has_signaled_can_start_recording_data
1791 7734 236 297 $rec->count_ok >= 1 and $rec->count_ko == 0
1806 285 222 16 $#formats_ok < 0 and $tt == 0
1824 250 0 273 $is_ok and not defined $dates_formats[$n]
1855 0 0 0 defined $rec->locale and $rec->locale ne ''
1897 0 0 0 defined $rec and $rec->has_found_time
1903 0 0 0 defined $floc and $floc ne ''
1951 1965 0 0 $self->{'_debug'} && $DEBUG_DATETIME_FORMATS
2001 0 9127 12 defined $locale and $locale ne ''
2072 11 6 330 $has_headers and not defined $self->{'fields_column_names'}
2116 0 36 1334 defined $columns[$i] and $columns[$i] ne ''
2182 44 37 2 $edef->ef_type == $EF_LINK and $edef->link_remote_read eq '*'
2261 0 325 4 defined $dt_locale and $dt_locale ne ''
2267 0 325 4 defined $loc_out and $loc_out ne ''
2277 0 315 0 defined $refsub_is_datetime_empty and &$refsub_is_datetime_empty($_)
2285 315 0 0 $_debug and $DEBUG_DATETIME_FORMATS
315 0 0 $_debug and $DEBUG_DATETIME_FORMATS and $DEBUG_DATETIME_FORMATS_EVEN_MORE
2514 153 0 0 not defined $input and $no_undef
2528 344 40 56 not defined $value and $no_undef
2575 314 0 0 $verbose and not $keep_quiet
2633 1 0 21 @c == 3 and $c[2] ne ''
2662 14 1 4 exists $self->{'_obj'} and exists $self->{'_obj'}{$in_file}
3057 0 4 36 defined $field and $field ne ''
3111 8 95 0 _is_utf8($enc) and $self->{'out_utf8_bom'}
3115 103 0 0 $OS_IS_PLAIN_WINDOWS and $FIX_PERLMONKS_823214
3151 97 0 1 defined $self->{'out_has_headers'} && !$self->{'out_has_headers'}
5 1 97 $self->{'has_headers'} and not defined $self->{'out_has_headers'} && !$self->{'out_has_headers'}
3394 72 0 489 exists $self->{$hash_name} and exists $self->{$projector_name}
3535 6 8 6 @{$r;} >= 2 and not $opt_ignore_ambiguous

or 3 conditions

line l !l&&r !l&&!r condition
358 0 0 2 $chnext eq $quote_char || exists $Seps{$chnext}
532 282 0 31 not defined $enc or $enc eq ''
552 0 0 313 not defined $in_file or $in_file eq ''
663 0 0 4156 not defined $step or $step != -1 and $step != 1
1344 11 40 230 @fields_dates or $self->{'fields_dates_auto'}
1548 0 0 244 $mate->index_master != $i or $mate->index_slave != -1
1555 0 0 244 $mate->index_slave != $i or $mate->index_master != -1
1652 11761 2383 5217 $is_ok or not $ignore_trailing_chars
1684 9155 2621 2368 $incr or $is_ok
1691 2384 4453 2318 $fmt->index_slave >= 0 or $fmt->index_master >= 0
1828 1 0 49 $check_empty != $count_empty or $check_nodate != $count_nodate
1 0 49 $check_empty != $count_empty or $check_nodate != $count_nodate or $check_ambiguous != $count_ambiguous
0 0 49 $check_empty != $count_empty or $check_nodate != $count_nodate or $check_ambiguous != $count_ambiguous or $check_gotit != $count_gotit
1832 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
2277 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($_)
2378 0 2 14 not defined $_ or $_ eq ''
2 11 3 not defined $_ or $_ eq '' or exists $named_fields{$_}
2392 0 0 8 not defined $_ or $_ eq ''
0 6 2 not defined $_ or $_ eq '' or exists $named_fields{$_}
2740 0 0 2 @c != 2 or $c[0] eq ''
0 0 2 @c != 2 or $c[0] eq '' or $c[1] eq ''
3151 97 4 2 $self->{'has_headers'} and not defined $self->{'out_has_headers'} && !$self->{'out_has_headers'} or $self->{'out_has_headers'}
3394 0 0 72 exists $self->{$hash_name} or exists $self->{$projector_name}