Branch Coverage

blib/lib/Future/Buffer.pm
Criterion Covered Total %
branch 35 46 76.0


line true false branch
119 4 15 if $self->{'fill_f'}
129 0 13 unless my $self = $weakself
133 11 2 if (@_) { }
143 3 10 if @{$self->{'pending'};}
155 10 23 if (not @$pending and my(@ret) = &$code(\$self->{'data'}))
161 16 7 if ($self->{'fill'} and my $fill_f = $self->_fill) { }
170 2 21 if CORE::length $self->{'data'}
174 2 1 if @$pending or not $self->{'fill_f'}
191 0 20 if $p->[1]->is_cancelled
193 4 16 unless defined(my $ret = $p->[0]->(\$self->{'data'}))
201 0 3 if $p->[1]->is_cancelled
249 6 8 if @{$self->{'pending'};}
268 1 0 if @{$self->{'pending'};}
295 15 20 unless CORE::length $$dref
322 5 3 unless CORE::length $$dref >= $len
352 2 0 unless ref $pattern eq "Regexp"
357 2 2 unless $$dref =~ /$pattern/u
399 0 3 unless CORE::length $_
404 0 0 unless s/^[aAcC]//u and $this = 1 or s/^[sSnv]//u and $this = 2 or s/^[iI]//u and $this = 4 or s/^[lLNV]//u and $this = 4 or s/^[qQ]//u and $this = 8 or s/^f//u and $this = 4 or s/^d//u and $this = 8
417 0 3 if s/^(\d+)//u
434 0 1 unless CORE::length $$dref >= $len
467 0 2 if (@{$self->{'pending'};} and CORE::length $self->{'data'})
472 1 1 if @{$self->{'pending'};}