Condition Coverage

blib/lib/Mojolicious/Plugin/DevexpressHelpers/Helpers.pm
Criterion Covered Total %
condition 40 76 52.6


and 3 conditions

line !l l&&!r l&&r condition
116 1 9 0 ref $attrs eq 'HASH' && delete $attrs->{'prependTo'}
117 1 9 0 ref $attrs eq 'HASH' && delete $attrs->{'appendTo'}
167 3 5 27 @_ and @implicit_args
170 2 0 0 substr($implicit, 0, 1) eq '@' and $ref eq 'ARRAY'
2 0 0 substr($implicit, 0, 1) eq '%' and $ref eq 'HASH'
2 0 0 substr($implicit, 0, 1) eq '\\' and $ref eq 'REF'
219 1 1 1 $attrs->{'dataSource'} and ref $attrs->{'dataSource'} eq ''

or 2 conditions

line l !l condition
111 3 7 $befores //= []
112 3 7 $afters //= []
131 19 0 $attrs->{$k} // ''
169 27 0 shift @implicit_args || ''
294 30 0 $_ // ''
298 0 10 $opts{'js_prefix'} // '$(window).on("load",function(){'
0 10 $opts{'js_sufix'} // '});'
316 2 0 $dxhelper->{'required_assets'} // []

or 3 conditions

line l !l&&r !l&&!r condition
119 1 1 8 $prepend or $append
155 1 1 8 $prepend or $append
170 25 0 2 $ref =~ /^(?:|SCALAR)$/u or substr($implicit, 0, 1) eq '@' and $ref eq 'ARRAY'
0 0 2 $ref =~ /^(?:|SCALAR)$/u or substr($implicit, 0, 1) eq '@' and $ref eq 'ARRAY' or substr($implicit, 0, 1) eq '%' and $ref eq 'HASH'
0 0 2 $ref =~ /^(?:|SCALAR)$/u or substr($implicit, 0, 1) eq '@' and $ref eq 'ARRAY' or substr($implicit, 0, 1) eq '%' and $ref eq 'HASH' or substr($implicit, 0, 1) eq '\\' and $ref eq 'REF'
0 0 2 $ref =~ /^(?:|SCALAR)$/u or substr($implicit, 0, 1) eq '@' and $ref eq 'ARRAY' or substr($implicit, 0, 1) eq '%' and $ref eq 'HASH' or substr($implicit, 0, 1) eq '\\' and $ref eq 'REF' or substr($implicit, 0, 1) eq '*'
192 0 0 0 delete $attrs->{'id'} // new_id($c, $attrs)
200 0 0 0 delete $attrs->{'id'} // new_id($c, $attrs)
208 2 1 0 delete $attrs->{'id'} // new_id($c, $attrs)
216 2 1 0 delete $attrs->{'id'} // new_id($c, $attrs)
238 0 0 0 delete $attrs->{'id'} // new_id($c, $attrs)
247 0 1 0 delete $attrs->{'id'} // new_id($c, $attrs)
264 3 0 0 $id //= new_id($c, $attrs)