blib/lib/Module/Install/Homepage.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 26 CC 2 SCAR 12.0
CC
2
Cov
0%
auto_set_homepage
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.3
1 package Module::Install::Homepage;
2  
3 use strict;
4 use warnings;
5 use 5.006;
6  
7 our $VERSION = '0.01';
8  
9 use base qw(Module::Install::Base);
10  
11 sub auto_set_homepage {
12 my $self = shift;
13 if ($self->name) {
14 $self->homepage(sprintf "http://search.cpan.org/dist/%s/", $self->name)
15 } else {
16 warn "can't set homepage if 'name' is not set\n";
17 }
18 }
19  
20 1;
21  
22 __END__