Branch Coverage

blib/lib/Clustericious/RouteBuilder/CRUD.pm
Criterion Covered Total %
branch 6 38 15.7


line true false branch
26 0 3 unless $finder->can('find_class')
36 0 6 if ($self->param('skip_existing') and $object->load('speculative', 1))
41 0 6 unless $object->save
42 0 6 unless $object->load
50 0 2 unless $finder->can('find_object')
56 0 8 unless my $obj = $finder->find_object($table, @keys)
68 0 0 unless $finder->can('find_object')
74 0 0 unless my $obj = $finder->find_object($table, @keys)
78 0 0 unless $obj->delete
89 0 0 unless $finder->can('find_object')
96 0 0 unless my $obj = $finder->find_object($table, @keys)
109 0 0 if grep {$key eq $_;} @$pkeys, @$ukeys
112 0 0 unless grep {$key eq $_;} @$columns, @$nested
115 0 0 unless $obj->$key($value)
118 0 0 unless $obj->save
127 0 0 unless $finder->can('find_object')
135 0 0 if (my $range = $self->req->headers->range) { }
138 0 0 if (defined $first and defined $last) { }
149 0 0 unless my $object_class = $finder->find_class($table)