Branch Coverage

blib/lib/Metrics/Any/Collector.pm
Criterion Covered Total %
branch 39 46 84.7


line true false branch
106 1 13 if $disable_for_package{$pkg}
107 10 3 unless %disable_for_namespace
110 2 2 if $disable_for_namespace{$pkg}
119 60 14 if $self->{'adapter'}
122 11 3 _enabled_for_package($self->{'package'}) ? :
137 40 9 if ($self->{'adapter'}) { }
150 45 8 unless defined $self->{'name_prefix'}
160 56 14 if ($meta) { }
10 4 elsif (not $self->{'strict'}) { }
161 0 56 unless $meta->[0] eq $type
165 8 2 if (not @args) { }
2 0 elsif (ref $args[0] eq 'ARRAY') { }
0 0 elsif (ref $args[0] eq 'HASH') { }
173 0 0 if keys %{$args[0];} > 1
191 57 9 if (not @args) { }
7 2 elsif (ref $args[0]) { }
195 0 7 if @args > 1
197 4 3 ref $arg eq 'ARRAY' ? :
287 9 17 unless not $_[0]{'adapter'}
409 1 21 if $self->{$handle}
509 1 10 if $self->{$handle}
578 1 9 if $self->{$handle}
695 1 9 if $self->{$handle}