Branch Coverage

blib/lib/Audio/Extract/PCM.pm
Criterion Covered Total %
branch 21 56 37.5


line true false branch
73 0 7 unless defined $ext
84 0 7 if (exists $args{'backends'})
87 5 2 if (exists $args{'backend'})
90 0 7 if (keys %args)
102 9 7 if ($failed)
104 0 9 if ($ENV{'DEBUG'})
106 0 0 if (@{$$this{'backends'};} > 1)
113 7 9 unless (@{$$this{'backends'};})
120 0 9 if ($this->_backend_available($backend_short))
149 0 19 unless $class->isa('Audio::Extract::PCM')
150 0 19 unless 1 == @_
155 0 19 unless ($backend_short =~ /^[A-Z]\w*\z/)
162 0 19 if $$available_ref
164 6 13 if ('Class::Inspector'->installed($backend) and not $dont_use_backends{$backend})
179 0 6 if (eval "require $backend; 1" and $$available_ref)
182 0 6 unless ($@ =~ /^\Q$backend\E - trynext\s/)
195 0 0 if (1 == @_) { }
197 0 0 unless ($format->isa('Audio::Extract::PCM::Format'))
224 7 0 unless $$this{'backend'} or $this->_initbackend
229 0 0 if ($ret and 'trynext' eq $ret)
230 0 0 unless $this->_initbackend('failed')
278 0 0 unless $$this{'backend'} or $this->_initbackend
283 0 0 if ($ret and 'trynext' eq $ret)
284 0 0 unless $this->_initbackend('failed')
368 0 7 if (@_)
386 0 0 unless (defined $status[0])
390 0 0 @status ? :
408 0 0 unless ($$this{'backend'})