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
559 0 0 0 $tx->res->is_error and not $self->error
613 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"
636 0 0 0 length $self->{'username'} and length $self->{'password'}
642 0 0 0 $ask and -t STDIN

or 2 conditions

line l !l condition
362 0 0 $args{'url'} || 'http://localhost'
363 0 0 $args{'url'}->path->to_string // ""
367 0 0 $args{'auth_scheme'} ||= ""
368 0 0 $args{'url'}->username // ""
369 0 0 $args{'url'}->password // ""
370 0 0 $args{'ask_credentials'} ||= 0
373 0 0 $args{'token'} //= ""
374 0 0 $args{'token_name'} ||= "X-Token"
377 0 0 $args{'public_key'} //= ""
378 0 0 $args{'private_key'} //= ""
381 0 0 $args{'proxy'} //= ""
399 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
451 0 0 $self->{'trace'} || []
520 0 0 $self->{'tx_string'} // ""
524 0 0 shift() // "/"
533 0 0 shift() // ""
557 0 0 $tx->res->code || '000'
559 0 0 $tx->res->json('/error') || $tx->res->json('/message') || $err->{'message'} || 'Unknown transaction error'
563 0 0 $tx->res->body_size || 0
564 0 0 $self->{'tx_time'} // 0
567 0 0 $tx->res->message || $err->{'message'} || 'Unknown error'
670 0 0 shift() // ""
690 0 0 $self->{'username'} // "anonymous"
0 0 $self->{'password'} // ""

or 3 conditions

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