Condition Coverage

blib/lib/Net/ICAP/Message.pm
Criterion Covered Total %
condition 47 87 54.0


and 3 conditions

line !l l&&!r l&&r condition
85 27 0 3 exists $args{'headers'} and $rv
86 29 0 1 exists $args{'reqhdr'} and $rv
87 30 0 0 exists $args{'reshdr'} and $rv
91 0 30 0 $rv and exists $args{'body_type'}
29 1 0 $rv and exists $args{'body_type'} and exists $args{'body'}
92 29 0 1 exists $args{'trailer'} and $rv
94 0 30 0 $rv and exists $args{'chunked_handler'}
229 0 0 2 $obj->set('_body_type', $type) && $obj->set('_body', $body)
312 290 0 0 $@ and $@ =~ /connection timed out/s
384 0 0 121 defined $k and defined $v
410 0 0 70 defined $v and length $v
608 0 0 0 defined $body and length $body
609 0 0 0 defined $body and length $body
618 0 10 10 defined $body and length $body
755 0 5 2 defined $line and $line ne "\r\n"
792 7 0 10 defined $t and length $t
799 12 0 5 defined $t and length $t
807 7 0 10 defined $tt and length $tt
7 0 10 defined $tt and length $tt and defined $t
0 0 10 defined $tt and length $tt and defined $t and length $t
862 15 0 12 $obj->setHeaders(&_parseHeaders(@headers)) && $obj->_parseEncap($input)
888 2 0 15 defined $d and length $d
905 7 0 10 defined $t and length $t
915 12 0 5 defined $t and length $t
925 7 0 10 defined $t and length $t
934 15 0 2 defined $t and length $t

or 3 conditions

line l !l&&r !l&&!r condition
434 1 99 28 $k =~ /^X-\w+[\w-]*/s or grep {$_ eq $k;} @valid
483 1 71 0 $header =~ /^X-\w+[\w-]*/s or grep {$_ eq $header;} @valid
688 12 12 0 not defined $n or $_ > $n