Condition Coverage

blib/lib/Dancer/Plugin/CRUD.pm
Criterion Covered Total %
condition 17 35 48.5


and 3 conditions

line !l l&&!r l&&r condition
166 40 3 12 $options{'action'} =~ /^(index|create)$/ && $$_{'resname'} eq $resname
208 28 36 14 exists $cap{$name . $SUFFIX} and ref $fnid eq 'CODE'
222 12 0 46 @ret and defined $ret[0]
12 45 1 @ret and defined $ret[0] and ref $ret[0] eq ''
45 0 1 @ret and defined $ret[0] and ref $ret[0] eq '' and $ret[0] =~ /^\d{3}$/
464 0 0 5 exists $$parent{'validation_rules'} and exists $$parent{'validation_rules'}{'wrap'}
0 0 5 exists $$parent{'validation_rules'} and exists $$parent{'validation_rules'}{'wrap'} and exists $$parent{'validation_rules'}{'wrap'}{$action}
0 0 5 exists $$parent{'validation_rules'} and exists $$parent{'validation_rules'}{'wrap'} and exists $$parent{'validation_rules'}{'wrap'}{$action} and exists $$parent{'validation_rules'}{'wrap'}{$action}{$route}

or 2 conditions

line l !l condition
502 2 0 $_[1] || 200

or 3 conditions

line l !l&&r !l&&!r condition
306 0 0 0 $default_serializer ||= setting('serializer')
309 0 0 0 $format ||= param('format')
325 0 0 0 $$content_types{$format} || setting('content_type')