Condition Coverage

blib/lib/Net/ICAP/Message.pm
Criterion Covered Total %
condition 43 72 59.7


and 3 conditions

line !l l&&!r l&&r condition
81 23 0 3 exists $args{'headers'} and $rv
83 25 0 1 exists $args{'reqhdr'} and $rv
84 26 0 0 exists $args{'reshdr'} and $rv
85 0 25 1 $rv and exists $args{'body_type'}
25 0 1 $rv and exists $args{'body_type'} and exists $args{'body'}
89 25 0 1 exists $args{'trailer'} and $rv
198 0 0 2 $obj->property('_body_type', $type) && $obj->property('_body', $body)
345 0 0 105 defined $k and defined $v
371 0 0 58 defined $v and length $v
562 0 6 6 defined $body and length $body
700 0 5 0 defined $line and $line ne "\r\n"
737 6 0 7 defined $t and length $t
744 10 0 3 defined $t and length $t
752 7 0 6 defined $tt and length $tt
7 0 6 defined $tt and length $tt and defined $t
0 0 6 defined $tt and length $tt and defined $t and length $t
806 13 0 10 $obj->setHeaders(_parseHeaders(@headers)) && $obj->_parseEncap($input)
832 2 0 11 defined $d and length $d
848 6 0 7 defined $t and length $t
858 10 0 3 defined $t and length $t
868 7 0 6 defined $t and length $t

or 3 conditions

line l !l&&r !l&&!r condition
395 1 86 25 $k =~ /^X-\w+[\w-]*/ms or grep {$_ eq $k;} @valid
444 1 59 0 $header =~ /^X-\w+[\w-]*/ms or grep {$_ eq $header;} @valid
633 10 9 0 not defined $n or $_ > $n