Condition Coverage

blib/lib/AWS/Lambda/Bootstrap.pm
Criterion Covered Total %
condition 13 35 37.1


and 3 conditions

line !l l&&!r l&&r condition
29 11 0 0 @_ == 1 and ref $_[0] eq "HASH"
41 0 0 11 $max_workers =~ /^\d+$/u and $max_workers >= 0

or 2 conditions

line l !l condition
36 0 0 ($args{'handler'} // $ENV{'_HANDLER'}) // die("\$_HANDLER is not found")
38 0 0 ($args{'runtime_api'} // $ENV{'AWS_LAMBDA_RUNTIME_API'}) // die("\$AWS_LAMBDA_RUNTIME_API is not found")
39 0 0 ($args{'task_root'} // $ENV{'LAMBDA_TASK_ROOT'}) // die("\$LAMBDA_TASK_ROOT is not found")
40 0 10 ($args{'max_workers'} // $ENV{'AWS_LAMBDA_MAX_CONCURRENCY'}) // 0
103 4 1 "main"->can($name) // die("handler $name is not found")
212 0 1 builtin::blessed($error) // "Error"
230 0 1 builtin::blessed($error) // "Error"

or 3 conditions

line l !l&&r !l&&!r condition
27 0 11 0 ref $proto || $proto
36 11 0 0 $args{'handler'} // $ENV{'_HANDLER'}
38 11 0 0 $args{'runtime_api'} // $ENV{'AWS_LAMBDA_RUNTIME_API'}
39 11 0 0 $args{'task_root'} // $ENV{'LAMBDA_TASK_ROOT'}
40 1 0 10 $args{'max_workers'} // $ENV{'AWS_LAMBDA_MAX_CONCURRENCY'}