Branch Coverage

blib/lib/Future/Buffer.pm
Criterion Covered Total %
branch 28 38 73.6


line true false branch
123 0 8 unless $weakself
130 2 6 if @{$self->{'pending'};}
143 10 16 if (not @$pending and my(@ret) = &$code(\$self->{'data'}))
149 10 6 if ($self->{'fill'} and my $fill_f = $self->_fill) { }
158 0 16 if CORE::length $self->{'data'}
162 2 1 if @$pending or not $self->{'fill_f'}
179 0 16 if $p->[1]->is_cancelled
181 4 12 unless defined(my $ret = $p->[0]->(\$self->{'data'}))
230 6 8 if @{$self->{'pending'};}
256 10 16 unless CORE::length $$dref
282 5 3 unless CORE::length $$dref >= $len
311 2 0 unless ref $pattern eq "Regexp"
316 2 2 unless $$dref =~ /$pattern/
357 0 3 unless CORE::length $_
362 0 0 unless s/^[aAcC]// and $this = 1 or s/^[sSnv]// and $this = 2 or s/^[iI]// and $this = 4 or s/^[lLNV]// and $this = 4 or s/^[qQ]// and $this = 8 or s/^f// and $this = 4 or s/^d// and $this = 8
375 0 3 if s/^(\d+)//
392 0 1 unless CORE::length $$dref >= $len
425 0 2 if (@{$self->{'pending'};} and CORE::length $self->{'data'})
430 1 1 if @{$self->{'pending'};}