Branch Coverage

blib/lib/Metrics/Any/Collector.pm
Criterion Covered Total %
branch 40 48 83.3


line true false branch
154 1 13 if $disable_for_package{$pkg}
155 10 3 unless %disable_for_namespace
158 2 2 if $disable_for_namespace{$pkg}
167 73 14 if $self->{'adapter'}
170 11 3 _enabled_for_package($self->{'package'}) ? :
185 40 9 if ($self->{'adapter'}) { }
198 45 8 unless defined $self->{'name_prefix'}
208 60 14 if ($meta) { }
10 4 elsif (not $self->{'strict'}) { }
209 0 60 unless $meta->[0] eq $type
213 8 2 if (not @args) { }
2 0 elsif (ref $args[0] eq 'ARRAY') { }
0 0 elsif (ref $args[0] eq 'HASH') { }
221 0 0 if keys %{$args[0];} > 1
239 61 9 if (not @args) { }
7 2 elsif (ref $args[0]) { }
243 0 7 if @args > 1
245 4 3 ref $arg eq 'ARRAY' ? :
335 9 17 unless not $_[0]{'adapter'}
383 0 3 unless ($self->adapter->can("HAVE_BATCH_MODE") and $self->adapter->HAVE_BATCH_MODE)
488 1 21 if $self->{$handle}
588 1 10 if $self->{$handle}
657 1 9 if $self->{$handle}
774 1 9 if $self->{$handle}