Condition Coverage

blib/lib/Datafile/Array.pm
Criterion Covered Total %
condition 46 96 47.9


and 3 conditions

line !l l&&!r l&&r condition
14 0 0 27 $do_trim and defined $value
39 6 6 1 $pos < $len and substr($line, $pos, 1) eq "\""
56 12 0 19 $pos < $len and substr($line, $pos, 1) eq $sep
101 3 0 0 defined $search and ref $search || length $search
119 2 1 0 $prefix and $has_headers == 0
120 3 0 0 $has_headers == 0 and @field_names
132 1 0 4 $count % 2 == 0 and $count == 0 || $csvline =~ /"[^"]*$/u
141 0 10 0 $skip_empty and $line eq ""
145 0 0 0 $prefix and substr($line, 0, 1) eq "H"
200 0 0 3 defined $pafields and @field_names
0 0 3 defined $pafields and @field_names and not @$pafields
234 2 0 0 ref $data ne "ARRAY" and ref $data ne "HASH"
2 0 0 ref $data ne "ARRAY" and ref $data ne "HASH" and not @field_names
264 0 0 2 $header and @field_names
287 2 0 0 $backup and -f $filename

or 2 conditions

line l !l condition
21 12 0 $sep //= ","
24 12 0 $line // ""
63 3 0 $opts //= {}
65 3 0 $opts->{'delimiter'} // ";"
66 0 3 $opts->{'key_fields'} // 1
67 0 3 $opts->{'trim_values'} // 1
68 0 3 $opts->{'comment_char'} // "#"
69 0 3 $opts->{'skip_empty'} // 1
70 1 2 $opts->{'csvquotes'} // 0
71 3 0 $opts->{'has_headers'} // 1
72 1 2 $opts->{'prefix'} // 0
74 0 3 $opts->{'verbose'} // 0
179 19 0 $fields[$start_idx + $i] // ""
213 2 0 $opts //= {}
215 2 0 $opts->{'delimiter'} // ";"
216 0 2 $opts->{'comment_char'} // "#"
217 2 0 $opts->{'header'} // 0
218 1 1 $opts->{'prefix'} // 0
219 0 2 $opts->{'backup'} // 0
220 0 2 $opts->{'prot'} // 432
221 0 2 $opts->{'verbose'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
101 0 0 0 ref $search || length $search
132 1 3 0 $count == 0 || $csvline =~ /"[^"]*$/u
145 3 0 0 $has_headers == 1 or $prefix and substr($line, 0, 1) eq "H"