Condition Coverage

lib/HTTP/Promise/Body/Form.pm
Criterion Covered Total %
condition 16 66 24.2


and 3 conditions

line !l l&&!r l&&r condition
36 0 0 0 ref $data ne "HASH" and overload::Method($data, "\"\"")
123 1 0 0 @_ and $self->_tie_object->_is_array($_[0])
148 2 0 0 ref $v2 and not overload::Method($v2, "\"\"")
2 0 0 ref $v2 and not overload::Method($v2, "\"\"") and $self->_is_warnings_enabled
158 3 0 0 ref $v and not overload::Method($v, "\"\"")
3 0 0 ref $v and not overload::Method($v, "\"\"") and $self->_is_warnings_enabled
176 0 0 1 defined $data && CORE::length "$data"
1 0 0 not defined $data && CORE::length "$data" and $self->_is_warnings_enabled
177 1 0 0 ref $data and not overload::Method($data, "\"\"")
197 0 0 6 defined $data && CORE::length "$data"
6 0 0 not defined $data && CORE::length "$data" and $self->_is_warnings_enabled
198 6 0 0 ref $data and not overload::Method($data, "\"\"")
239 0 1 0 ref $ref ne "ARRAY" and ref $ref ne "HASH"
259 0 0 0 ref $v2 and not overload::Method($v2, "\"\"")
0 0 0 ref $v2 and not overload::Method($v2, "\"\"") and $self->_is_warnings_enabled
269 1 0 0 ref $v and not overload::Method($v, "\"\"")
1 0 0 ref $v and not overload::Method($v, "\"\"") and $self->_is_warnings_enabled

or 2 conditions

line l !l condition
43 6 0 $this->decode_to_hash("$data") || (return $this->pass_error)
313 0 0 $self->_tie_object->new_scalar(\$encoded) || (return $self->pass_error)
315 0 0 $s->open(@_) || (return $self->pass_error($s->error))

or 3 conditions

line l !l&&r !l&&!r condition
36 6 0 0 not ref $data or ref $data ne "HASH" and overload::Method($data, "\"\"")
332 0 0 0 $fh ||= select
333 0 0 0 $self->_tie_object->_is_glob($fh) or $self->_tie_object->_is_a($fh, "HTTP::Promise::IO")