Branch Coverage

lib/HTTP/Promise/Stream/QuotedPrint.pm
Criterion Covered Total %
branch 16 42 38.1


line true false branch
41 0 3 unless defined $from_fh and defined $to_fh
42 0 3 unless $self->_load_class("MIME::QuotedPrint", {"no_import", 1})
44 0 3 unless ($self->_can($from_fh, "getline"))
47 0 0 $self->_can($from_fh, 'fileno') ? :
0 0 unless $io->fdopen($self->_can($from_fh, "fileno") ? $from_fh->fileno : fileno $from_fh, "r")
59 0 10 unless defined $rv
61 0 3 if not defined $buff and $self->_can($from_fh, "error") and $self->error
69 0 2 if (not defined $rv) { }
89 0 2 unless defined $from_fh and defined $to_fh
90 0 2 unless $self->_load_class("MIME::QuotedPrint", {"no_import", 1})
92 0 2 unless ($self->_can($from_fh, "getline"))
95 0 0 $self->_can($from_fh, 'fileno') ? :
0 0 unless $io->fdopen($self->_can($from_fh, "fileno") ? $from_fh->fileno : fileno $from_fh, "r")
99 1 1 exists $opts->{'eol'} && defined $opts->{'eol'} ? :
107 0 11 if &Encode::is_utf8($buff)
108 11 0 $has_eol ? :
112 0 11 unless defined $rv
114 0 2 if not defined $buff and $self->_can($from_fh, "error") and $self->error
122 0 1 if (not defined $rv) { }
139 0 0 $@ ? :
145 0 0 $@ ? :