File Coverage

blib/lib/App/Info/HTTPD.pm
Criterion Covered Total %
statement 9 10 90.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 13 15 86.6


line stmt bran cond sub pod time code
1             package App::Info::HTTPD;
2              
3 4     4   168 use strict;
  4         13  
  4         129  
4 4     4   3256 use App::Info;
  4         12  
  4         128  
5 4     4   31 use vars qw(@ISA $VERSION);
  4         7  
  4         821  
6             @ISA = qw(App::Info);
7             $VERSION = '0.57';
8              
9             my $croak = sub {
10             my ($caller, $meth) = @_;
11             $caller = ref $caller || $caller;
12             if ($caller eq __PACKAGE__) {
13             $meth = __PACKAGE__ . '::' . shift;
14             Carp::croak(__PACKAGE__ . " is an abstract base class. Attempt to " .
15             " call non-existent method $meth");
16             } else {
17             Carp::croak("Class $caller inherited from the abstract base class " .
18             __PACKAGE__ . "but failed to redefine the $meth method. " .
19             "Attempt to call non-existent method ${caller}::$meth");
20             }
21             };
22              
23 0     0 1   sub httpd_root { $croak->(shift, 'httpd_root') }
24              
25             1;
26             __END__