Condition Coverage

blib/lib/App/CSVUtils.pm
Criterion Covered Total %
condition 63 122 51.6


and 3 conditions

line !l l&&!r l&&r condition
90 0 0 43 defined $str and length $str
118 0 0 0 defined $field and length $field
129 0 0 0 $i == 1 and not $outputs_header
197 0 0 0 defined $args and $args->{'input_filename'}
212 0 0 0 defined $args->{'input_header'} and not $args->{'input_header'}
354 10 0 0 not $select_field_options_used and $default_select_choice
995 39 3 0 $is_slurpy and defined $slurpy_pos
1000 53 3 4 defined $slurpy_pos and $j >= $slurpy_pos
1002 600 30 18 defined $args->{$_}{'pos'} and $args->{$_}{'pos'} == $j
1455 0 0 2 $reads_csv && $writes_csv
117 2 0 $util_args{'inplace'} and not $reads_csv && $writes_csv
1485 0 3 76 $reads_csv and $writes_csv
1516 79 0 0 $r->{'output_fh'} and $r->{'output_filename'} ne "-"
1576 4 124 74 $outputs_header and not $r->{'has_printed_header'}
1635 19 118 1 $r->{'input_filenum'} == 1 and $before_open_input_files
1669 661 0 0 $r->{'stdin_input_fields'} and $r->{'input_filename'} eq "-"
523 134 4 $i == 0 and not $has_header
532 121 4 $i == 1 and not $has_header
1743 407 0 0 defined $r->{'wants_fill_rows'} and not $r->{'wants_fill_rows'}

or 2 conditions

line l !l condition
145 213 0 $prefix //= ""
176 0 0 $args{'word'} // ""
266 0 0 $num_samples //= 5
1406 25 0 delete $gen_args{'summary'} // "(No summary)"
1407 22 3 delete $gen_args{'description'} // "(No description)"
1408 3 22 delete $gen_args{'links'} // []
1409 15 10 delete $gen_args{'examples'} // []
1414 0 25 delete $gen_args{'reads_csv'} // 1
1415 25 0 delete $gen_args{'tags'} // []
1418 8 17 delete $gen_args{'writes_csv'} // 1
1438 4 115 $util_args{'input_header'} // 1
1478 0 0 $util_args{'output_filenames'} // ["-"]
1480 0 77 $util_args{'output_filename'} // "-"
1504 0 79 $r->{'output_num_of_files'} //= scalar @output_filenames
1509 0 79 $r->{'output_filenum'} //= 0
1596 0 0 $$row0{$r->{'output_fields'}[$j]} // ""
1621 18 0 $util_args{'input_filenames'} // ["-"]
1623 101 0 $util_args{'input_filename'} // "-"
1625 0 119 $r->{'input_filenames'} //= \@input_filenames
1826 0 2 $r->{'output_filenum'} // 0
1916 0 17 $meta->{'args_rels'}{'dep_all&'} //= []
1918 0 17 $meta->{'args_rels'}{'choose_one&'} //= []
1927 0 0 $meta->{'args_rels'}{'choose_one&'} //= []
1935 17 0 $meta->{'args_rels'}{'choose_one&'} //= []
1941 0 17 $meta->{'args_rels'}{'dep_any&'} //= []

or 3 conditions

line l !l&&r !l&&!r condition
148 1 0 212 defined $$args{"${prefix}sep_char"} or defined $$args{"${prefix}quote_char"}
1 0 212 defined $$args{"${prefix}sep_char"} or defined $$args{"${prefix}quote_char"} or defined $$args{"${prefix}escape_char"}
1439 0 115 4 $util_args{'output_header'} // $has_header
1508 79 0 132 not $r->{'output_fh'} or $r->{'wants_switch_to_next_output_file'}
1711 0 0 0 $r->{'stdin_input_fields'} //= $r->{'input_row'}