Branch Coverage

blib/lib/DBIx/QuickORM/RowManager.pm
Criterion Covered Total %
branch 33 52 63.4


line true false branch
29 0 23 unless my $con = $self->{'connection'}
56 0 0 unless ($reason)
62 0 0 if $row
66 0 0 if $row
75 11 165 if @{$self->{'transactions'};}
84 0 111 unless my $row_class = load_class(($source->row_class // $connection->schema->row_class) // "DBIx::QuickORM::Row")
113 5 74 if $row
136 11 1 if ($row) { }
150 0 8 unless $row
183 34 41 unless $row
195 0 176 unless my $source = $params->{'source'}
196 0 176 unless $source->DOES("DBIx::QuickORM::Role::Source")
201 174 2 if ($fetched or not $skip{'fetched'})
203 0 174 unless $fetched
204 0 174 unless ref $fetched eq "HASH"
206 165 9 if (my $pk_fields = $source->primary_key)
209 164 1 if (exists $fetched->{$field}) { }
217 1 164 if (@bad) { }
219 0 1 unless $skip{'fetched'}
230 176 0 unless ($skip{'row'})
231 6 170 if ($row = $params->{'row'})
232 0 6 unless $row->isa("DBIx::QuickORM::Row")
233 0 6 unless $row->source == $source
234 0 6 unless $row->connection == $self->{'connection'}
235 4 2 if $row->in_storage
240 0 63 if $cached and $row and $cached != $row