| blib/lib/Amazon/CreatorsAPI/Auth.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 5 | 22 | 22.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 59 | 0 | 0 | 0 | $self->access_token && $self->expires_at && time < $self->expires_at |
| 135 | 0 | 0 | 1 | $version and exists $AUTH_ENDPOINT_MAP->{$version} |
| line | l | !l | condition |
|---|---|---|---|
| 31 | 1 | 0 | shift() || {} |
| 40 | 0 | 1 | $opt->{'grant_type'} || 'client_credentials' |
| 104 | 0 | 0 | $res->{'reason'} || 'reason_unknown' |
| 117 | 0 | 0 | $res_data->{'expires_in'} || 3600 |
| 138 | 0 | 0 | $version || 'unknown' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 40 | 0 | 1 | 0 | $opt->{'auth_endpoint'} || _auth_endpoint($credential_version) |
| 1 | 0 | 0 | $opt->{'ua'} || 'HTTP::Tiny'->new |