Condition Coverage

blib/lib/Finance/StockAccount.pm
Criterion Covered Total %
condition 27 45 60.0


and 3 conditions

line !l l&&!r l&&r condition
27 15 0 1 $options and exists $$options{'allowZeroPrice'}
15 0 1 $options and exists $$options{'allowZeroPrice'} and $$options{'allowZeroPrice'}
176 0 0 257 ref $at and ref $at eq 'Finance::StockAccount::AccountTransaction'
199 0 0 1 ref $accountTransactions and ref $accountTransactions eq 'ARRAY'
216 1 0 22 exists $$init{'action'} && grep({$_ eq $$init{'action'};} 'buy', 'sell', 'short', 'cover')
1 0 21 exists $$init{'quantity'} && $$init{'quantity'} =~ /[0-9]/ && $$init{'quantity'} > 0
1 0 20 exists $$init{'price'} && $$init{'price'} =~ /[0-9]/
17 1 2 $$init{'price'} <= 0 and not $$self{'allowZeroPrice'}
241 18 0 0 exists $$init{'stock'} and exists $$init{'symbol'} || exists $$init{'exchange'}
484 0 0 13 $setCount > 0 and $totalOutlays

or 3 conditions

line l !l&&r !l&&!r condition
99 262 19 0 $assertion == 1 or $assertion == 0
216 6 18 1 exists $$init{'tm'} || exists $$init{'dateString'}
0 23 1 exists $$init{'stock'} || exists $$init{'symbol'}
241 0 0 0 exists $$init{'symbol'} || exists $$init{'exchange'}
412 17 2 33 $$self{'stats'}{'stale'} or $self->staleSets