File Coverage

blib/lib/Acme/People/Happy.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 3 3 100.0
total 24 24 100.0


line stmt bran cond sub pod time code
1             package Acme::People::Happy;
2              
3 5     5   89090 use strict;
  5         35  
  5         144  
4 5     5   28 use warnings;
  5         9  
  5         143  
5              
6 5     5   2594 use Class::Utils qw(set_params);
  5         141533  
  5         96  
7              
8             # Version.
9             our $VERSION = 0.05;
10              
11             # Constructor.
12             sub new {
13 5     5 1 5168 my ($class, @params) = @_;
14              
15             # Create object.
16 5         15 my $self = bless {}, $class;
17              
18             # Process parameters.
19 5         29 set_params($self, @params);
20              
21             # Object.
22 3         25 return $self;
23             }
24              
25             # Simple question.
26             sub are_you_happy {
27 1     1 1 7 return "Yes, i'm.";
28             }
29              
30             # Everybody can be happy.
31             sub everybody {
32 1     1 1 6 return 'Everybody can be happy.';
33             }
34              
35             1;
36              
37             __END__