Branch Coverage

blib/lib/Finance/InteractiveBrokers/API.pm
Criterion Covered Total %
branch 19 24 79.1


line true false branch
211 0 6 if @args & 1
225 1 5 unless exists $$methods{$self->api_version}
237 5 0 if (exists $our_args{lc $_})
241 5 0 if $our_args{lc $_} & $Finance::InteractiveBrokers::API::DELETE
248 6 0 if ($our_args{$_} & $Finance::InteractiveBrokers::API::REQUIRED)
252 0 6 unless exists $$self{lc $_} and defined $$self{lc $_}
301 4 499 unless defined $name
303 336 163 exists $$methods{$self->api_version}{$name} ? :
312 4 310 unless defined $name
314 294 16 exists $$events{$self->api_version}{$name} ? :
323 4 323 unless defined $name
325 315 8 $self->is_method($name) || $self->is_event($name) ? :