Condition Coverage

blib/lib/WWW/Suffit/UserAgent.pm
Criterion Covered Total %
condition 0 83 0.0


and 3 conditions

line !l l&&!r l&&r condition
564 0 0 0 $tx->res->is_error and not $self->error
618 0 0 0 not $status and $self->{'ask_credentials'}
0 0 0 not $status and $self->{'ask_credentials'} and $self->code == 401
0 0 0 not $status and $self->{'ask_credentials'} and $self->code == 401 and lc $self->{'auth_scheme'} eq "basic"
641 0 0 0 length $self->{'username'} and length $self->{'password'}
647 0 0 0 $ask and -t STDIN

or 2 conditions

line l !l condition
367 0 0 $args{'url'} || 'http://localhost'
368 0 0 $args{'url'}->path->to_string // ""
372 0 0 $args{'auth_scheme'} ||= ""
373 0 0 $args{'url'}->username // ""
374 0 0 $args{'url'}->password // ""
375 0 0 $args{'ask_credentials'} ||= 0
378 0 0 $args{'token'} //= ""
379 0 0 $args{'token_name'} ||= "X-Token"
382 0 0 $args{'public_key'} //= ""
383 0 0 $args{'private_key'} //= ""
386 0 0 $args{'proxy'} //= ""
404 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
456 0 0 $self->{'trace'} || []
525 0 0 $self->{'tx_string'} // ""
529 0 0 shift() // "/"
538 0 0 shift() // ""
562 0 0 $tx->res->code || '000'
564 0 0 $tx->res->json('/error') || $tx->res->json('/message') || $err->{'message'} || 'Unknown transaction error'
568 0 0 $tx->res->body_size || 0
569 0 0 $self->{'tx_time'} // 0
572 0 0 $tx->res->message || $err->{'message'} || 'Unknown error'
675 0 0 shift() // ""
695 0 0 $self->{'username'} // "anonymous"
0 0 $self->{'password'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
373 0 0 0 $args{'username'} //= $args{'url'}->username // ""
374 0 0 0 $args{'password'} //= $args{'url'}->password // ""
558 0 0 0 not $err or $err->{'code'}