Branch Coverage

blib/lib/Net/Amazon/MechanicalTurk.pm
Criterion Covered Total %
branch 10 66 15.1


line true false branch
399 0 0 unless (defined $self->$attr)
416 0 0 unless (defined $self->requesterUrl)
417 0 0 $self->isProduction ? :
419 0 0 if (not defined $self->workerUrl)
420 0 0 $self->isProduction ? :
471 17 0 if ($#_ >= 0)
475 0 17 if ($serviceUrl =~ /^Sandbox$/i) { }
0 17 elsif ($serviceUrl =~ /^Prod(uction)?$/i) { }
484 0 17 if (exists $params{'Service'})
487 0 17 if (exists $params{'Version'})
505 0 0 if ($#_ >= 0)
507 0 0 if (UNIVERSAL::isa($transport, 'Net::Amazon::MechanicalTurk::Transport')) { }
534 0 0 if ($#_ == 0 and UNIVERSAL::isa($_[0], 'ARRAY')) { }
538 0 0 $#_ == 0 ? :
559 0 0 if ($#_ == 0 and UNIVERSAL::isa($_[0], 'ARRAY')) { }
563 0 0 $#_ == 0 ? :
600 0 0 if ($@)
604 0 0 if ($self->debug)
609 0 0 if ($response->errorCode)
640 17 0 unless ($self->config)
641 0 17 if (exists $ENV{$Net::Amazon::MechanicalTurk::PROP_ENVNAME}) { }
0 17 elsif (-f $Net::Amazon::MechanicalTurk::PROP_FILENAME) { }
652 0 17 if ($homedir and -f "$homedir/$Net::Amazon::MechanicalTurk::PROP_GLOBAL_DIR/$Net::Amazon::MechanicalTurk::PROP_GLOBAL_AUTH")
661 0 17 if ($self->config)
665 0 0 if (UNIVERSAL::can($self, $k))
667 0 0 unless (defined $self->$k)
676 0 0 if ($k =~ /^(.*)(::|-)DEBUG/)
679 0 0 if ('Net::Amazon::MechanicalTurk::ModuleUtil'->tryRequire($module))
683 0 0 if ($@)
729 0 0 if (not $operation =~ /^[A-Z]/) { }
0 0 elsif ($operation =~ /^(.+)All$/) { }
731 0 0 if ('Net::Amazon::MechanicalTurk::ModuleUtil'->tryRequire($module))
734 0 0 unless ($sub)