Branch Coverage

lib/HTTP/Promise/Body.pm
Criterion Covered Total %
branch 8 26 30.7


line true false branch
51 15 0 if exists $opts->{$_} and $opts->{$_}
55 0 19 if ($self->can('opened') and $io = $self->opened) { }
70 0 19 if (defined $pos)
95 0 0 unless $self->_is_glob($fh) or $self->_is_a($fh, "HTTP::Promise::IO")
98 0 0 if exists $opts->{'binmode'} and $opts->{'binmode'}
104 0 0 unless print $fh $buff
143 0 32 unless $self->Module::Generic::File::init(@_)
185 0 76 unless defined $new
189 18 36 @_ > 1 ? :
194 0 13 unless $self->_load_class("Crypt::Digest::MD5")
234 0 0 if (not defined $data or (not ref $data or $self->_is_scalar($data) and overload::Method($data, '""')) or ref $data eq 'SCALAR') { }
0 0 elsif ($self->_is_array($data)) { }
250 0 0 unless $self->SUPER::init($data, @_)