Condition Coverage

lib/HTTP/Promise/Body.pm
Criterion Covered Total %
condition 6 30 20.0


and 3 conditions

line !l l&&!r l&&r condition
51 23 0 15 exists $opts->{$_} and $opts->{$_}
55 18 1 0 $self->can("opened") and $io = $self->opened
98 0 0 0 exists $opts->{'binmode'} and $opts->{'binmode'}
234 0 0 0 $self->_is_scalar($data) and overload::Method($data, "\"\"")

or 2 conditions

line l !l condition
31 3 0 $self->open('r') || (return $self->pass_error)
63 19 0 $self->open('r', scalar keys %$params ? $params : ()) || (return $self->pass_error)
101 0 0 $self->open('r', scalar keys %$params ? $params : ()) || (return $self->pass_error)

or 3 conditions

line l !l&&r !l&&!r condition
95 0 0 0 $self->_is_glob($fh) or $self->_is_a($fh, "HTTP::Promise::IO")
234 0 0 0 not ref $data or $self->_is_scalar($data) and overload::Method($data, "\"\"")
0 0 0 not defined $data or (not ref $data or $self->_is_scalar($data) and overload::Method($data, "\"\""))
0 0 0 not defined $data or (not ref $data or $self->_is_scalar($data) and overload::Method($data, "\"\"")) or ref $data eq "SCALAR"