Branch Coverage

lib/Net/API/CPAN/Generic.pm
Criterion Covered Total %
branch 3 28 10.7


line true false branch
30 32 1 unless exists $self->{'api'}
33 0 33 unless $self->SUPER::init(@_)
43 0 0 unless scalar keys %$hash
44 0 0 if (exists $self->{'_init_preprocess'} and ref $self->{'_init_preprocess'} eq "CODE")
54 0 0 unless ($code = $self->can($k))
56 0 0 if $self->_is_warnings_enabled
92 0 0 if ref $ref ne "HASH"
94 0 0 if (exists $self->{'_init_preprocess'} and ref $self->{'_init_preprocess'} eq "CODE")
102 0 0 if (scalar @_ == 1 and $self->_is_array($_[0])) { }
0 0 elsif ($self->can('fields')) { }
121 0 0 if ($dubious and not $self->can($meth))
137 0 0 if ($self->can('fields')) { }
154 0 0 if substr($meth, 0, 1) eq "_"
157 0 0 if ($@)