Condition Coverage

blib/lib/Nitesi/Cart.pm
Criterion Covered Total %
condition 19 30 63.3


and 3 conditions

line !l l&&!r l&&r condition
220 1 0 11 exists $item{'sku'} and defined $item{'sku'}
1 0 11 exists $item{'sku'} and defined $item{'sku'} and $item{'sku'} =~ /\S/
225 1 0 10 exists $item{'name'} and defined $item{'name'}
1 0 10 exists $item{'name'} and defined $item{'name'} and $item{'name'} =~ /\S/
230 7 0 3 exists $item{'quantity'} and defined $item{'quantity'}
231 0 0 3 $item{'quantity'} =~ /^(\d+)$/ and $item{'quantity'} > 0
240 1 0 9 exists $item{'price'} and defined $item{'price'}
1 0 9 exists $item{'price'} and defined $item{'price'} and $item{'price'} =~ /^(\d+)(\.\d+)?$/
0 0 9 exists $item{'price'} and defined $item{'price'} and $item{'price'} =~ /^(\d+)(\.\d+)?$/ and $item{'price'} > 0
696 7 2 1 $$calc{'inclusive'} and not $display