Condition Coverage

blib/lib/Finance/Nadex/Position.pm
Criterion Covered Total %
condition 10 47 21.2


and 3 conditions

line !l l&&!r l&&r condition
107 0 0 2 exists $hashref->{'market'} and exists $hashref->{'position'}
0 0 0 exists $hashref->{'order'} and exists $hashref->{'instrument'}
0 0 0 exists $hashref->{'order'} and exists $hashref->{'instrument'} and $hashref->{'marketSnapshot'}

or 2 conditions

line l !l condition
108 2 0 $hashref->{'position'}{'direction'} || undef
109 2 0 $hashref->{'position'}{'openLevel'} || undef
110 2 0 $hashref->{'position'}{'dealId'} || undef
111 2 0 $hashref->{'position'}{'epic'} || undef
112 2 0 $hashref->{'market'}{'instrumentName'} || undef
113 2 0 $hashref->{'market'}{'displayBid'} || 'NoBid'
114 2 0 $hashref->{'market'}{'displayOffer'} || 'NoOffer'
115 2 0 $hashref->{'position'}{'dealSize'} || undef
121 0 0 $hashref->{'order'}{'direction'} || undef
122 0 0 $hashref->{'order'}{'openingLevel'} || undef
123 0 0 $hashref->{'order'}{'id'} || undef
124 0 0 $hashref->{'instrument'}{'epic'} || undef
125 0 0 $hashref->{'instrument'}{'marketName'} || undef
126 0 0 $hashref->{'marketSnapshot'}{'displayBid'} || 'NoBid'
128 0 0 $hashref->{'marketSnapshot'}{'displayOffer'} || 'NoOffer'
129 0 0 $hashref->{'order'}{'size'} || undef

or 3 conditions

line l !l&&r !l&&!r condition
35 0 1 0 $self->{'direction'} eq "+" or $self->{'direction'} eq "buy"
37 0 0 0 $self->{'direction'} eq "-" or $self->{'direction'} eq "sell"