Branch Coverage

blib/lib/Finance/Nadex/Position.pm
Criterion Covered Total %
branch 10 24 41.6


line true false branch
11 1 0 if (exists $self->{'bid'})
22 1 0 if (exists $self->{'contract'})
33 1 0 if (exists $self->{'direction'})
35 1 0 if $self->{'direction'} eq "+" or $self->{'direction'} eq "buy"
37 0 0 if $self->{'direction'} eq "-" or $self->{'direction'} eq "sell"
48 1 0 if (exists $self->{'epic'})
60 1 0 if (exists $self->{'id'})
71 1 0 if (exists $self->{'offer'})
82 1 0 if (exists $self->{'price'})
94 1 0 if (exists $self->{'size'})
107 2 0 if (exists $hashref->{'market'} and exists $hashref->{'position'}) { }
0 0 elsif (exists $hashref->{'order'} and exists $hashref->{'instrument'} and $hashref->{'marketSnapshot'}) { }