Branch Coverage

lib/Acme/CPANAuthors.pm
Criterion Covered Total %
branch 19 44 43.1


line true false branch
13 0 2 unless @categories
35 2 2 if (not $id) { }
40 2 0 $$self{'authors'}{$id} ? :
47 2 3 if (not $id) { }
63 0 0 unless $id
67 0 0 if ($package->cpanid eq $id)
78 0 0 unless $id
82 0 0 if ($package->cpanid eq $id)
93 0 0 unless $id
95 0 0 unless eval { do { require Gravatar::URL; 1 } }
97 0 0 unless my $author = cpan_authors->author($id)
100 0 0 $default ? :
116 0 1 unless $id
125 0 5 unless defined $id_or_name
126 4 1 unless (ref $id_or_name eq 'Regexp')
131 0 5 ref $self ? :
132 5 0 unless @categories
136 5 5 if ($id =~ /$id_or_name/ or $name =~ /$id_or_name/)
160 0 12 if $category =~ /^(?:Register|Utils|Search)$/
163 3 9 unless ($package->can('authors'))
165 0 3 if ($@)
170 0 3 unless $package->can('authors')