Condition Coverage

blib/lib/Future/Buffer.pm
Criterion Covered Total %
condition 6 9 66.6


and 3 conditions

line !l l&&!r l&&r condition
139 10 0 5 $self->{'fill'} and my $fill_f = $self->_fill
152 13 0 18 @$pending and CORE::length $self->{'data'}

or 3 conditions

line l !l&&r !l&&!r condition
115 1 6 0 $self->{'fill_f'} //= do { &weaken(my $weakself = $self); my $fill = $self->{'fill'}; $self->{'fill_f'} = &$fill()->on_done(sub { my($data) = @_; return unless $weakself; $weakself->{'data'} .= $data; undef $self->{'fill_f'}; $weakself->_invoke_pending; $weakself->_fill if @{$self->{'pending'};}; } ) }