Branch Coverage

blib/lib/IO/AsyncX/Sendfile.pm
Criterion Covered Total %
branch 12 22 54.5


line true false branch
104 0 32 unless $self->loop
106 32 0 if (defined $args{'file'})
107 0 32 unless open $args{'fh'}, '<', $args{'file'}
110 0 32 unless my $fh = delete $args{'fh'}
114 32 0 unless (defined $total)
116 0 32 unless seek $fh, 0, 2
118 0 32 unless seek $fh, $pos, 0
124 32 448 unless $remaining
126 0 448 unless ($remaining > 0)
131 448 0 if (my $written = &sendfile($stream->write_handle, $fh, $remaining))
139 32 0 unless $f->is_ready