Condition Coverage

blib/lib/MToken/Client.pm
Criterion Covered Total %
condition 0 113 0.0


and 3 conditions

line !l l&&!r l&&r condition
498 0 0 0 defined $data and is_hash($data) || !ref($data)
512 0 0 0 defined $req_content and not ref $req_content
548 0 0 0 $data && ref $data eq 'CODE'
569 0 0 0 $self->{'verbose'} and defined $req->content
0 0 0 $self->{'verbose'} and defined $req->content and length $req->content
576 0 0 0 $self->{'verbose'} and defined $res->content
0 0 0 $self->{'verbose'} and defined $res->content and length $res->content
593 0 0 0 $structure and ref $structure eq 'HASH'
612 0 0 0 -e $cachefn and -f $cachefn
627 0 0 0 defined $filter and $filter ne ''
634 0 0 0 $filename_or_id and $filename_or_id =~ /^([0-9]{8})$/
661 0 0 0 defined $file and length $file
688 0 0 0 defined $file and length $file
736 0 0 0 defined $file and length $file
759 0 0 0 defined $file and length $file
796 0 0 0 $length and $size != $length
896 0 0 0 -f $cachefn and -r _
0 0 0 -f $cachefn and -r _ and -s _
901 0 0 0 defined $user and length $user

or 2 conditions

line l !l condition
305 0 0 $args{'verbose'} ||= 0
315 0 0 $args{'timeout'} ||= 180
438 0 0 $res->content_length || 0
439 0 0 $self->{'res_time'} // 0
440 0 0 $self->line // 'ERROR'
457 0 0 $self->{'trace'} || []
463 0 0 shift() || 0
474 0 0 $self->{'trace_redirects'} || []
481 0 0 shift() || 'GET'
523 0 0 -s $file || 0
583 0 0 $res->decoded_content // ''
609 0 0 $self->code || 500
626 0 0 $json{'data'}{'files'} || []
646 0 0 $json{'data'}{'files'} || []
678 0 0 $json{'response_object'} || ''
699 0 0 $self->{'uri'}->path || ''
706 0 0 $json{'response_object'} || ''
715 0 0 MToken::Util::md5sum($file) || ''
747 0 0 $self->{'uri'}->path || ''
770 0 0 $self->{'uri'}->path || ''
841 0 0 shift() || 0
899 0 0 tcd_load($cachefn) // ''

or 3 conditions

line l !l&&r !l&&!r condition
387 0 0 0 shift() || $self->{'realm'}
498 0 0 0 is_hash($data) || !ref($data)
580 0 0 0 $no_json_response or $method eq 'HEAD'
806 0 0 0 $res->header('X-Died') or not $res->is_success