Condition Coverage

blib/lib/MojoMojo.pm
Criterion Covered Total %
condition 15 24 62.5


and 3 conditions

line !l l&&!r l&&r condition
164 0 0 0 $c->req->header('x-requested-with') && $c->req->header('x-requested-with') eq 'XMLHttpRequest'
227 613 8 2358 defined $c->cache->get($setting) and not defined $value
310 86 21 0 $c->user and $c->user->timezone
473 74 0 43 @pathelements and $pathelements[0] eq ''
654 106 11 74 $user and $user->is_admin
721 82 260 0 exists $permdata->{$path} and exists $permdata->{$path}{$role}
141 119 0 exists $permdata->{$path} and exists $permdata->{$path}{$role} and exists $permdata->{$path}{$role}{$permtype}

or 3 conditions

line l !l&&r !l&&!r condition
544 117 0 0 $role_ids ||= $c->user_role_ids($c->user)