Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
105 0 0 2 exists $hashref->{'market'} and exists $hashref->{'workingOrder'}
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
106 2 0 $hashref->{'workingOrder'}{'direction'} || undef
107 2 0 $hashref->{'workingOrder'}{'level'} || undef
108 2 0 $hashref->{'workingOrder'}{'dealId'} || undef
109 2 0 $hashref->{'workingOrder'}{'epic'} || undef
110 2 0 $hashref->{'market'}{'instrumentName'} || undef
111 2 0 $hashref->{'market'}{'displayBid'} || 'NoBid'
112 2 0 $hashref->{'market'}{'displayOffer'} || 'NoOffer'
113 2 0 $hashref->{'workingOrder'}{'size'} || undef
119 0 0 $hashref->{'order'}{'direction'} || undef
120 0 0 $hashref->{'order'}{'triggerLevel'} || undef
121 0 0 $hashref->{'order'}{'id'} || undef
122 0 0 $hashref->{'instrument'}{'epic'} || undef
123 0 0 $hashref->{'instrument'}{'marketName'} || undef
124 0 0 $hashref->{'marketSnapshot'}{'displayBid'} || 'NoBid'
126 0 0 $hashref->{'marketSnapshot'}{'displayOffer'} || 'NoOffer'
127 0 0 $hashref->{'order'}{'size'} || undef

or 3 conditions

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