Branch Coverage

blib/lib/Raisin/Entity.pm
Criterion Covered Total %
branch 26 52 50.0


line true false branch
46 3 31 if (scalar @SUBNAME)
55 3 31 if scalar @SUBNAME
66 12 14 unless @expose
67 12 14 unless @expose
72 0 14 if (&blessed($data) and $data->can('next')) { }
0 14 elsif (ref $data eq 'ARRAY') { }
14 0 elsif (ref $data eq 'HASH' or &blessed($data) and $data->isa('Rose::DB::Object') || $data->isa('DBIx::Class::Core')) { }
77 0 0 unless $result
85 0 0 unless $result
109 0 26 if &blessed($obj) and $obj->condition and not $obj->condition->($data)
111 26 0 &blessed($obj) ? :
113 26 0 &blessed($obj) ? :
115 5 21 if (&blessed($obj) and my $runtime = $obj->runtime) { }
2 19 elsif (&blessed($obj) and my $e = $obj->using) { }
121 3 2 if ($retval and not ref $retval and $retval =~ /^Raisin::Entity::Nested::/)
128 0 2 &blessed($data) ? :
132 0 19 &blessed($data) ? :
146 0 21 if (&blessed($data)) { }
0 21 elsif (ref $data eq 'ARRAY') { }
21 0 elsif (ref $data eq 'HASH') { }
147 0 0 if ($data->isa('DBIx::Class::ResultSet')) { }
0 0 elsif ($data->isa('DBIx::Class::Core')) { }
0 0 elsif ($data->isa('Rose::DB::Object')) { }
0 0 elsif ($data->isa('Rose::DB::Object::Iterator')) { }
161 0 0 if (&blessed($data->[0]) and $data->[0]->isa('Rose::DB::Object')) { }
173 21 0 unless @columns