Condition Coverage

blib/lib/Gantry/Utils/CRUDHelp.pm
Criterion Covered Total %
condition 5 46 10.8


and 3 conditions

line !l l&&!r l&&r condition
64 0 0 0 $$field{'is'} eq 'date' and not $$params{$name}
82 4 0 2 defined $$item{'optional'} and $$item{'optional'}
4 0 0 defined $$item{'type'} and $$item{'type'} eq 'display'
92 5 0 1 defined $$item{'constraint'} and $$item{'constraint'}
123 0 0 0 $$field{'is'} =~ /^varchar/i and $$params{$name} eq ''
0 0 0 $$field{'is'} =~ /^int/i and $$params{$name} eq ''
188 0 0 0 $user_id and $owner_bit eq $action_bit
196 0 0 0 $user_id and $user_id eq $row->user_id
0 0 0 $user_id and $user_id eq $row->user_id and $owner_bit eq $action_bit
209 0 0 0 $$permissions{'group'} and $$member_of{$$permissions{'group'}}
0 0 0 $$permissions{'group'} and $$member_of{$$permissions{'group'}} and $group_bit eq $action_bit

or 2 conditions

line l !l condition
157 0 0 $$opts{'params'} || {}
185 0 0 $user_id || 0

or 3 conditions

line l !l&&r !l&&!r condition
123 0 0 0 $$field{'is'} =~ /^bool/i || $$field{'is'} =~ /^int/i || $$params{$name}
164 0 0 0 $permissions ||= $site->controller_config->{'permissions'}
183 0 0 0 $action eq 'edit' or $action eq 'delete'