Branch Coverage

blib/lib/Swim/Plugin/cpan.pm
Criterion Covered Total %
branch 20 42 47.6


line true false branch
15 1 0 unless ref $$meta{'author'} eq 'ARRAY'
25 2 0 if (@args)
26 0 2 if (not grep(/^[-+]/, @args)) { }
31 1 1 if ($arg =~ /^-(.*)/) { }
37 1 0 if ($arg =~ /^(see)/) { }
51 0 5 unless my $output = $self->$method
61 1 0 $uc ? :
75 0 1 unless my $badge = $$self{'meta'}{'badge'}
76 1 0 unless ref $badge
77 0 1 unless my $repo = $$meta{'devel'}{'git'}
78 0 1 unless $repo =~ s[.*[:/]([^/]+)/([^/]+?)(?:\.git)?$][$1/$2]
80 0 1 unless eval 'require Swim::Plugin::badge; 1'
91 0 0 $uc ? :
105 1 0 $uc ? :
107 1 0 if (my $see = $$meta{'see'})
109 0 1 unless ref $see
122 1 0 $uc ? :
124 0 1 if (@$authors > 1)
125 0 0 $uc ? :
139 1 0 $uc ? :
145 1 0 if ($$author{'copyright'})