Branch Coverage

blib/lib/RapidApp/Util/MetaKeys.pm
Criterion Covered Total %
branch 26 50 52.0


line true false branch
21 0 7 if &blessed($data) and $data->isa('RapidApp::Util::MetaKeys')
32 7 0 unless (ref $data)
33 0 7 $can_be_file && -f file($data) ? :
47 0 0 if $File->stat->size > 65536
67 0 7 unless $data
79 4 19 if ($line =~ /\#/)
91 8 15 if not $line or $line eq ''
96 0 15 unless (scalar @parts == 2)
131 0 0 unless $self->_table_ndx->{$schema}{$table}
138 0 7 if &blessed($data)
140 7 0 if (my $ref_type = ref $data)
141 7 0 if ($ref_type eq 'ARRAY') { }
0 0 elsif ($ref_type eq 'HASH') { }
146 21 0 if (ref $itm and not &blessed($itm))
147 20 1 if (ref $itm eq 'ARRAY') { }
1 0 elsif (ref $itm eq 'HASH') { }
148 0 20 unless scalar @$_ == 2
178 38 2 unless (ref $el)
181 0 38 unless scalar @parts == 2 or scalar @parts == 3
186 0 38 unless $new->{'column'} = pop @parts
187 0 38 unless $new->{'table'} = pop @parts
188 0 38 if scalar @parts > 0
193 0 2 unless ref $el eq 'HASH'
195 0 2 unless $el->{'column'}
196 0 2 unless $el->{'table'}