Branch Coverage

blib/lib/Device/Firmata/Base.pm
Criterion Covered Total %
branch 9 78 11.5


line true false branch
49 1 1 if (@_)
51 1 0 if (my $attrs = $opts->{'FIRMATA_ATTRIBS'})
55 1 0 unless (ref *{$pkg . '::ISA';} eq "ARRAY" and @${$pkg . '::ISA';})
58 1 0 $opts->{'ISA'} ? :
0 1 ref $opts->{'ISA'} ? :
73 0 0 if $self->{'_biofunc_pre_init'}
75 0 0 if ($self->{'_biofunc_init'}) { }
82 0 0 if $self->{'_biofunc_post_init'}
100 0 0 if $self->{'_biofunc_pre_init'}
102 0 0 if ($self->{'_biofunc_init'}) { }
109 0 0 if $self->{'_biofunc_post_init'}
123 0 0 unless exists $opts->{$k}
124 0 0 if $k =~ /^_biofunc/
138 0 0 @_ ? :
140 0 0 if ${"${class}::ABSOLUTE_ATTRIBS";}
145 0 0 unless ${"${c}::FIRMATA_ATTRIBS";}
148 0 0 if (${"${c}::ABSOLUTE_ATTRIBS";}) { }
152 0 0 if $track->{$c}
157 0 0 if exists $u->{$k}
163 0 0 $class->can($f) ? :
183 0 1 unless @_ > 1
185 0 1 if (@_ == 2)
186 0 0 if ref $_[1]
190 0 1 unless @_ % 2
205 0 0 if (ref $s)
206 0 0 if (UNIVERSAL::isa($s, 'HASH')) { }
0 0 elsif (UNIVERSAL::isa($s, 'ARRAY')) { }
209 0 0 ref $v ? :
215 0 0 if (ref $_) { }
230 0 0 if @_ >= 2
240 0 0 if @_ >= 2
264 0 0 if (@_)
286 0 0 if $Device::Firmata::Base::FIRMATA_ERROR
288 0 0 if ($Device::Firmata::Base::FIRMATA_ERROR_CLASS eq "Device::Firmata::Error")
295 0 0 if $@
299 0 0 if $@
357 0 0 if ($self and UNIVERSAL::isa($self, 'Device::Firmata::Base')) { }
382 0 0 unless $object_class =~ /^\w+(?:::\w+)*$/
383 0 0 unless eval "require $object_class; 1"