Branch Coverage: blib/lib/Stats/LikeR.pm

# Branch Coverage

File: | blib/lib/Stats/LikeR.pm
Coverage: | 73.2%

line | % | coverage | branch
--- | --- | --- | ---
21 | 100 | T | F | unless ref $data eq "ARRAY"
40 | 50 | T | F | unless -r -f $file
50 | 50 | T | F | if (scalar @undef_args > 0)
55 | 100 | T | F | unless ($args{'output.type'} =~ /^(?:aoh|hoa|hoh)$/)
60 | 50 | T | F | if (defined $filter and ref $filter eq 'CODE') { }
| 50 | T | F | elsif (defined $filter and ref $filter ne 'HASH') { }
71 | 100 | T | F | unless (@header)
73 | 50 | T | F | if @line and defined $line[0]
77 | 100 | T | F | if (scalar @header > 0 and $header[0] eq "")
80 | 100 | T | F | if ($args{'output.type'} eq "hoh" and not defined $args{'row.names'})
83 | 50 | T | F | if (defined $args{'row.names'} and not grep({$_ eq $args{'row.names'};} @header))
87 | 100 | T | F | if ($filter)
89 | 50 | T | F | if ($k =~ /^\d+$/) { }
93 | 50 | T | F | unless defined $idx
101 | 50 | T | F | if (scalar @line != scalar @header)
107 | 50 | T | F | if (not defined $line[$i] or $line[$i] eq '') { }
115 | 100 | T | F | if (%mapped_filters)
118 | 50 | T | F | $fld == 0 ? :
121 | 100 | T | F | unless ($keep)
127 | 50 | T | F | if ($fld > 0)
129 | 50 | T | F | defined $_ && $_ eq '' ? :
133 | 100 | T | F | if $skip
136 | 100 | T | F | if ($args{'output.type'} eq 'aoh') { }
| 100 | T | F | elsif ($args{'output.type'} eq 'hoa') { }
| 50 | T | F | elsif ($args{'output.type'} eq 'hoh') { }
145 | 100 | T | F | if $col eq $args{'row.names'}
152 | 100 | T | F | if ($args{'output.type'} eq 'aoh') { }
| 50 | T | F | elsif ($args{'output.type'} =~ /^(?:hoa|hoh)$/) { }