Condition Coverage

lib/Finance/IG.pm
Criterion Covered Total %
condition 0 141 0.0


and 3 conditions

line !l l&&!r l&&r condition
872 0 0 0 exists $position->{'held'} and $position->{'held'} > 0
1062 0 0 0 exists $Finance::IG::a->{$key} and exists $Finance::IG::b->{$key}
1070 0 0 0 $x1 eq $x1 + 0 and $x2 eq $x2 + 0
1199 0 0 0 defined $dealReference and length $dealReference > 5
1330 0 0 0 $ms ne "TRADEABLE" and not $ignoretradeable
1360 0 0 0 defined $dealReference and length $dealReference > 5
1488 0 0 0 defined $resolution and 0 == grep({$resolution eq $_;} "DAY", "HOUR", "HOUR_2", "HOUR_3", "HOUR_4", "MINUTE", "MINUTE_10", "MINUTE_15", "MINUTE_2", "MINUTE_3", "MINUTE_30", "MINUTE_5", "MONTH", "SECOND", "WEEK")
1747 0 0 0 $code == 403 and $retried < 4
2032 0 0 0 defined $up and ref $up eq ""
0 0 0 defined $up and ref $up eq "" and not defined $down
2034 0 0 0 defined $up and ref $up ne "CODE"
2042 0 0 0 defined $up and $v1 > $up
2043 0 0 0 defined $down and $v1 < $down
2044 0 0 0 defined $up and $v1 > $up * 5
2045 0 0 0 defined $down and $v1 < 5 * $down
2049 0 0 0 defined $up and ref $up eq "CODE"
2081 0 0 0 $self->col and defined $INC{'Term/Chrome.pm'}
2084 0 0 0 $self->col and defined $INC{'Term/Chrome.pm'}
2114 0 0 0 $self->col and defined $INC{'Term/Chrome.pm'}
2116 0 0 0 $self->col and defined $INC{'Term/Chrome.pm'}
2149 0 0 0 defined $item and $item ne ""
0 0 0 defined $item and $item ne "" and exists $position->{$item}
0 0 0 defined $item and $item ne "" and exists $position->{$item} and defined $position->{$item}
2154 0 0 0 $item eq "dbid" and exists $INC{'Term/Chrome.pm'}
0 0 0 $item eq "dbid" and exists $INC{'Term/Chrome.pm'} and $self->col
2172 0 0 0 $item eq "dbid" and defined $INC{'Term/Chrome.pm'}
0 0 0 $item eq "dbid" and defined $INC{'Term/Chrome.pm'} and $self->col
2204 0 0 0 $len and $len < length $s
0 0 0 $len and $len < length $s and $len >= 1
2210 0 0 0 $self->col and defined $INC{'Term/Chrome.pm'}

or 2 conditions

line l !l condition
236 0 0 $client->responseHeader("CST") // die("No CST header in login response")
237 0 0 $client->responseHeader("X-SECURITY-TOKEN") // die("No X-SECURITY-TOKEN in login response header")
296 0 0 $from //= ""
297 0 0 $to //= ""
380 0 0 $pageNumber //= ""
383 0 0 $from //= ""
384 0 0 $to //= ""
423 0 0 $pageSize //= ""
874 0 0 $totals{$position->{'instrumentName'}} ||= []
942 0 0 $sortlist //= ["-profitpc", "instrumentName"]
1018 0 0 $sortlist //= ["-profitpc", "instrumentName"]
1454 0 0 $pagesize //= 1
1957 0 0 $position->{'marketStatus'} //= ""
2144 0 0 $1 // ""
2211 0 0 $col //= ""

or 3 conditions

line l !l&&r !l&&!r condition
895 0 0 0 $position->{'instrumentName'} //= $subtotal->{'instrumentName'}
903 0 0 0 $position->{'bid'} //= $subtotal->{'bid'}
905 0 0 0 $position->{'epic'} //= $subtotal->{'epic'}
907 0 0 0 $position->{'currency'} //= $subtotal->{'currency'}
908 0 0 0 $position->{'marketStatus'} //= $subtotal->{'marketStatus'}
2089 0 0 0 not defined $position or $position eq ""
2171 0 0 0 $self->fetch($position, $item) // $self->uds