Condition Coverage

blib/lib/Yancy/Controller/Yancy/MultiTenant.pm
Criterion Covered Total %
condition 18 25 72.0


and 3 conditions

line !l l&&!r l&&r condition
240 7 7 0 $id and not $c->_is_owned_by

or 2 conditions

line l !l condition
141 3 1 $c->stash('user_id') || die('User ID not defined in stash')
143 2 1 $c->stash("user_id_field") // "user_id"
243 8 0 $c->stash("user_id_field") // "user_id"
316 21 2 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
318 18 3 $c->stash('user_id') || die('User ID not defined in stash')
323 0 18 ($c->stash("id_field") // $schema->{'x-id-field'}) // "id"
324 16 2 $c->stash($id_field) // die(sprintf("ID field \"%s\" not defined in stash", $id_field))
325 16 0 $c->stash("user_id_field") // "user_id"

or 3 conditions

line l !l&&r !l&&!r condition
323 0 0 18 $c->stash("id_field") // $schema->{'x-id-field'}
327 0 2 14 not $item or $item->{$user_id_field} ne $user_id