blib/lib/MToken/Client.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 0 | 75 | 0.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
285 | 0 | 0 | 0 | $args{'url'} and $args{'user'} |
292 | 0 | 0 | 0 | $args{'pwcache'} and -e $args{'pwcache'} |
294 | 0 | 0 | 0 | $args{'pwcache_ttl'} and $pwcache_path->stat->mtime + $args{'pwcache_ttl'} < time |
388 | 0 | 0 | 0 | $tx->res->is_error and not $self->error |
440 | 0 | 0 | 0 | not $status and $self->code == 401 |
447 | 0 | 0 | 0 | not $status and $self->code == 401 |
0 | 0 | 0 | $status and $self->{'pwcache'} | |
450 | 0 | 0 | 0 | $self->{'pwcache'} and -e $self->{'pwcache'} |
473 | 0 | 0 | 0 | $self->{'pwcache'} and -e $self->{'pwcache'} |
481 | 0 | 0 | 0 | $ask and -t STDIN |
505 | 0 | 0 | 0 | not $url and $self->{'url'} |
line | l | !l | condition |
---|---|---|---|
268 | 0 | 0 | $args{'url'} ||= "" |
283 | 0 | 0 | $args{'user'} ||= "" |
284 | 0 | 0 | $args{'password'} ||= "" |
290 | 0 | 0 | $args{'pwcache'} ||= "" |
291 | 0 | 0 | $args{'pwcache_ttl'} //= 300 |
310 | 0 | 0 | $args{'max_redirects'} || 10 |
0 | 0 | $args{'connect_timeout'} || 10 | |
0 | 0 | $args{'inactivity_timeout'} || 30 | |
0 | 0 | $args{'request_timeout'} || 180 | |
0 | 0 | $args{'insecure'} || 0 | |
344 | 0 | 0 | $self->{'trace'} || [] |
386 | 0 | 0 | $tx->res->code || '000' |
388 | 0 | 0 | $tx->res->json('/message') || $err->{'message'} || 'Unknown error' |
392 | 0 | 0 | $tx->res->body_size || 0 |
393 | 0 | 0 | $self->{'tx_time'} // 0 |
396 | 0 | 0 | $tx->res->message || $err->{'message'} || 'Unknown error' |
474 | 0 | 0 | tcd_load($self->{'pwcache'}) // "" |
569 | 0 | 0 | shift() || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
382 | 0 | 0 | 0 | not $err or $err->{'code'} |
462 | 0 | 0 | 0 | $url ||= $self->{'url'} |