Branch Coverage

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


line true false branch
108 0 32 unless $self->loop
110 32 0 if (defined $args{'file'})
111 0 32 unless open $args{'fh'}, "<", $args{'file'}
114 0 32 unless my $fh = delete $args{'fh'}
118 32 0 unless (defined $total)
120 0 32 unless seek $fh, 0, 2
122 0 32 unless seek $fh, $pos, 0
129 32 256 unless $remaining
131 0 256 unless ($remaining > 0)
136 256 0 if (my $written = &sendfile(scalar $stream->write_handle, $fh, $remaining, $offset))
145 32 0 unless $f->is_ready