Branch Coverage

blib/lib/RPC/ExtDirect/API.pm
Criterion Covered Total %
branch 58 76 76.3


line true false branch
33 30 8 unless @args
36 0 8 unless @args % 2 == 0
54 10 14 if $code
82 0 26 @_ == 1 && 'HASH' eq ref $_[0] ? :
120 2 10 if exists $api_href->{$type}
126 8 6 $remote ? :
127 8 6 $remote ? :
135 8 6 $remote ? :
138 0 18 if ($hook_code)
181 5 3 if (ref $class) { }
201 0 0 unless $remoting_api or $polling_api
223 4 4 if $auto_connect
227 5 3 if ($polling_api and not $no_polling)
237 3 2 if $auto_connect
260 27 58 unless defined $arg{'action'}
265 1 51 if $arg{'no_overwrite'} and exists $self->{'actions'}{$action_name}
303 363 287 if $action->package eq $package
323 30 334 $action_name ? :
328 33 331 unless ($action)
329 33 0 unless $action_name
339 0 0 $package ? :
0 364 if $action->can($method_name)
356 3 90 unless $action
382 40 12 if ($package or $action_name) { }
385 40 0 if ($package) { }
388 0 40 unless $action
394 0 0 unless $action
398 0 40 if ($method_name) { }
401 0 0 unless $method
428 389 22 $action_name ? :
432 0 411 unless $action
500 7 26 unless @methods
513 1 7 if $config->timeout
517 1 7 if $config->max_retries
521 7 1 if $config->namespace
545 5 21 if $has_poll_handlers
549 3 5 unless $has_poll_handlers
566 0 60 if ($self->config->api_full_action_names) { }