Branch Coverage

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


line true false branch
110 0 32 unless $self->loop
112 32 0 if (defined $args{'file'})
113 0 32 unless open $args{'fh'}, '<', $args{'file'}
116 0 32 unless my $fh = delete $args{'fh'}
120 32 0 unless (defined $total)
122 0 32 unless seek $fh, 0, 2
124 0 32 unless seek $fh, $pos, 0
130 32 448 unless $remaining
132 0 448 unless ($remaining > 0)
137 448 0 if (my $written = &sendfile($stream->write_handle, $fh, $remaining))
145 32 0 unless $f->is_ready