Branch Coverage

blib/lib/MToken/Client.pm
Criterion Covered Total %
branch 0 78 0.0


line true false branch
270 0 0 if ($args{'url'})
285 0 0 if ($args{'url'} and $args{'user'}) { }
0 0 elsif ($args{'url'}) { }
292 0 0 if ($args{'pwcache'} and -e $args{'pwcache'})
294 0 0 if ($args{'pwcache_ttl'} and $pwcache_path->stat->mtime + $args{'pwcache_ttl'} < time) { }
303 0 0 unless ($ua)
321 0 0 if defined $e
327 0 0 if defined $s
333 0 0 if defined $c
339 0 0 if (defined $v)
382 0 0 unless (not $err or $err->{'code'})
387 0 0 $tx->res->is_success ? :
388 0 0 if $tx->res->is_error and not $self->error
396 0 0 $rtime ? :
402 0 0 if ($req_hdrs)
407 0 0 if ($res_hdrs)
429 0 0 $self->{'url'} ? :
0 0 $_url ? :
431 0 0 if $_url
440 0 0 if (not $status and $self->code == 401)
447 0 0 if (not $status and $self->code == 401) { }
0 0 elsif ($status and $self->{'pwcache'}) { }
450 0 0 if $self->{'pwcache'} and -e $self->{'pwcache'}
461 0 0 shift @_ ? :
466 0 0 if $self->{'user'}
470 0 0 if $user
473 0 0 if ($self->{'pwcache'} and -e $self->{'pwcache'})
476 0 0 if $user
481 0 0 if ($ask and -t STDIN)
486 0 0 if (length $user) { }
505 0 0 if (not $url and $self->{'url'})
539 0 0 $token ? :
561 0 0 unless $status
563 0 0 if $filepath->stat->size
575 0 0 if ($hours) { }
0 0 elsif ($mins >= 2) { }
0 0 elsif ($secs < 120) { }
588 0 0 if ($n >= 1048576) { }
0 0 elsif ($n >= 1024) { }