Branch Coverage

blib/lib/Data/MATFile.pm
Criterion Covered Total %
branch 62 182 34.0


line true false branch
127 4 1 if ($ok)
153 0 1 if ($$obj{'verbose'})
161 0 1 if ($v != 256)
165 0 1 if ($$obj{'verbose'})
183 0 1 unless ($file_name)
186 0 1 unless (-f $file_name)
210 0 1 if ($$obj{'verbose'})
238 0 1 unless ($$obj{'fh'})
258 1 0 if ($e eq 'MI') { }
0 0 elsif ($e eq 'IM') { }
268 0 1 if ($$obj{'verbose'})
293 0 5 if wantarray != 0
295 1 4 if ($$obj{'eof'})
298 0 4 if ($type == 15) { }
4 0 elsif ($type == 14) { }
301 0 0 unless gunzip(\$cdata, \my($uncdata))
314 0 0 unless (defined $name)
325 0 4 if ($$obj{'verbose'})
354 4 0 if ($numeric) { }
0 0 elsif ($class == 2) { }
0 0 elsif ($class == 1) { }
0 0 elsif ($class == 4) { }
362 0 0 unless ($name)
375 0 0 if ($$obj{'verbose'})
387 0 4 unless (defined $$matrix{'array'})
406 0 0 unless ($data)
425 0 0 if wantarray != 0
448 0 4 if ($type != 6)
451 0 4 if ($n_bytes != 8)
458 0 4 if ($$obj{'verbose'})
459 0 0 if ($complex) { }
466 0 4 if ($complex)
470 0 4 if ($class > 15)
473 0 4 if ($$obj{'verbose'})
490 0 0 if ($$obj{'verbose'})
494 0 0 if ($type != 5)
497 0 0 if ($n_bytes != 4)
500 0 0 unless (defined $data)
504 0 0 if ($$obj{'verbose'})
508 0 0 if ($type != 1)
512 0 0 if ($n_names != int $n_names)
520 0 0 if ($$obj{'verbose'})
541 0 0 if ($class == 6 or $class == 7 or $class == 8 or $class == 9 or $class == 10 or $class == 11 or $class == 12 or $class == 13)
551 0 4 if ($$obj{'verbose'})
552 0 0 if ($numeric) { }
578 4 0 if ($type == 9) { }
579 0 4 if ($class != 6)
585 0 0 unless ($data)
588 0 0 if ($type == 1) { }
0 0 elsif ($type == 2) { }
0 0 elsif ($type == 3) { }
0 0 elsif ($type == 4) { }
0 0 elsif ($type == 5) { }
0 0 elsif ($type == 6) { }
635 0 4 if (scalar @$numbers != $n)
642 4 0 if (@$dim == 2) { }
714 0 4 if ($n_bytes % 8 != 0)
722 0 22 if ($$obj{'verbose'})
755 0 22 if ($bottom == 0) { }
0 22 elsif ($top == 2146435072) { }
756 0 0 if ($top == 0) { }
0 0 elsif ($top == 2147483648) { }
0 0 elsif ($top == 2146435072) { }
0 0 elsif ($top == 4293918720) { }
797 0 4 if ($$obj{'verbose'})
801 0 4 if ($type != 1)
805 0 4 if ($n_bytes == 0)
808 4 0 unless ($data)
813 0 4 if ($$obj{'verbose'})
831 0 4 unless wantarray
834 0 4 if ($type != 5)
839 0 4 if ($$obj{'verbose'})
856 0 21 if ($$obj{'verbose'})
860 1 20 if ($$obj{'eof'})
886 0 20 if ($$obj{'verbose'})
889 0 20 if (length $h != 8)
897 0 20 if ($sdef)
899 0 0 if ($$obj{'verbose'})
908 0 20 if ($type > 18)
911 0 20 if ($$obj{'verbose'})
936 0 40 if ($$obj{'eof'})
939 0 40 if ($$obj{'verbose'})
940 0 0 if ($no_pad)
946 4 36 if (not $no_pad and $n % 8 != 0)
953 0 40 if ($$obj{'input_data'}) { }
956 0 0 if ($nbytes > $has)
965 0 40 unless (defined $nread)
968 1 39 if ($nread == 0) { }
0 39 elsif ($nread != $nbytes) { }
976 4 36 if ($padded)
977 0 4 if ($$obj{'verbose'})