Condition Coverage

blib/lib/Bio/Gonzales/Matrix/IO.pm
Criterion Covered Total %
condition 51 194 26.2


and 3 conditions

line !l l&&!r l&&r condition
30 0 0 6 $cc and ref $cc eq 'HASH'
78 0 0 0 $c{'comment'} and $raw_row =~ /$c{'comment'}/
88 0 0 0 defined $vidx and $vidx ne 'all'
97 0 18 0 $c{'comment'} and /$c{'comment'}/
102 16 1 1 $record_filter and not &$record_filter($_)
113 4 13 0 $uniq and not defined $vidx
118 8 4 1 $is_strict and defined $map{$k}
171 1 0 1 $c{'col_idx'} and ref $c{'col_idx'} eq 'ARRAY'
177 0 0 0 $c{'comment'} and $raw_row =~ /$c{'comment'}/
195 0 4 0 $c{'comment'} and /$c{'comment'}/
200 4 0 0 $record_filter and not &$record_filter($_)
212 2 0 0 $c{'row_names'} and $c{'header'}
0 0 0 $c{'row_names'} and $c{'header'} and @m > 0
0 0 0 $c{'row_names'} and $c{'header'} and @m > 0 and @{$m[0];} == @header
0 0 0 $c{'row_names'} and $c{'header'} and @m > 0 and @{$m[0];} == @header and not $header[0]
266 0 5 2 $c{'comment'} and /$c{'comment'}/
270 3 0 0 $record_filter and not &$record_filter($_)
292 0 0 0 defined $from_idx and defined $to_idx
309 0 0 0 $header and @$header > 0
346 0 0 1 $m and ref $m eq 'ARRAY'
364 0 0 1 $header and @$header > 0
366 0 0 1 $header and @$header > 0
0 1 0 $header and @$header > 0 and $rownames
1 0 0 $header and @$header > 0 and $rownames and not ref $rownames
1 0 0 $header and @$header > 0 and $rownames and not ref $rownames and @$header >= @$m
370 1 0 0 ref $rownames eq 'ARRAY' and @$rownames > $num_rows
379 0 0 0 ref $rownames eq 'ARRAY' && @$rownames >= @$m
1 0 0 $rownames and not ref $rownames eq 'ARRAY' && @$rownames >= @$m
388 1 0 0 $rownames and not $c->{'r_style_header'}
395 0 0 0 $rownames and not $c->{'r_style_header'}
421 1 0 0 $q and defined $na
446 0 0 0 $header and @$header > 0
0 0 0 $header and @$header > 0 and $rownames
0 0 0 $header and @$header > 0 and $rownames and not ref $rownames
0 0 0 $header and @$header > 0 and $rownames and not ref $rownames and @$header == @$m

or 2 conditions

line l !l condition
39 6 0 $cc //= {}
71 0 2 (($c{'uniq'} // $c{'uniq_vals'}) // $c{'unique'}) // 0
109 17 0 $_ // ''
111 17 0 join($;, @k) // ''
121 0 4 $map{$k} //= []
134 0 0 ($c->{'uniq'} // $c->{'uniq_vals'}) // 0
155 1 1 $cc //= {}
250 1 1 $cc //= {}
305 0 0 ($c->{'sep'} // $c->{'delim'}) // "\t"
353 0 1 $c->{'fill_rows'} // 1
354 0 1 $c->{'sep'} // "\t"
355 0 1 ($c->{'missing'} // $c->{'na_value'}) // 'NA'
404 0 0 $rownames->[$i] // 'no_name'
406 0 0 $m->[$i] // []
443 0 0 $c->{'sep'} // "\t"
444 0 0 ($c->{'missing'} // $c->{'na_value'}) // 'NA'

or 3 conditions

line l !l&&r !l&&!r condition
33 6 0 0 $cc->{'key_idx'} //= $cc->{'key_idcs'}
34 6 0 0 $cc->{'val_idx'} //= $cc->{'val_idcs'}
54 0 0 6 $c{'header'} //= $c{'commented_header'}
61 6 0 0 $c{'concat_keys'} or not ref $c{'key_idx'}
71 4 0 2 $c{'uniq'} // $c{'uniq_vals'}
0 0 2 ($c{'uniq'} // $c{'uniq_vals'}) // $c{'unique'}
134 0 0 0 $c->{'uniq'} // $c->{'uniq_vals'}
231 0 0 0 $c->{'sep'} //= $data =~ /["\d],["\d,]/ ? ',' : ($data =~ /["\d];["\d;]/ ? ';' : ($data =~ /["\d]\t["\d]/ ? "\t" : ($data =~ /\w,[\w,]/ ? ',' : ($data =~ /\w;[\w;]/ ? ';' : ($data =~ /\w\t[\w]/ ? "\t" : ',')))))
305 0 0 0 $c->{'sep'} // $c->{'delim'}
306 0 0 0 $c->{'header'} // $c->{'ids'}
349 1 0 0 $c->{'header'} // $c->{'ids'}
350 0 0 1 $c->{'row_names'} // $c->{'rownames'}
355 0 0 1 $c->{'missing'} // $c->{'na_value'}
408 0 0 0 $square or $fill_rows
423 2 0 0 not $q or /^\d+$/
441 0 0 0 $c->{'header'} // $c->{'ids'}
442 0 0 0 $c->{'row_names'} // $c->{'rownames'}
444 0 0 0 $c->{'missing'} // $c->{'na_value'}
467 0 0 0 $_ // $na_value