blib/lib/Acme/People/Happy.pm

filter: Statementstmt 88.2% 15 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 100% 3 / 3 totaltotal 84.6% 22 / 26 CC 1 SCAR 2.9
CC
1
Cov
88%
are_you_happy
2.0
everybody
2.0
BEGIN
1.0
CRAP 1.3
↑ Summary
1 package Acme::People::Happy;
2  
3 # Pragmas.
4 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # Modules.
8 4 ▶use Class::Utils qw(set_params);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 # Version.
11 4 our $VERSION = 0.02;
12  
13 # Constructor.
14 sub new {
15 3 ▶ my ($class, @params) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod documented
16  
17 # Create object.
18 3 my $self = bless {}, $class;
19  
20 # Process parameters.
21 3 set_params($self, @params);
22  
23 # Object.
24 1 return $self;
25 }
26  
27 # Simple question.
28 sub are_you_happy {
29 0 ▶ return "Yes, i'm.";
Subroutine are_you_happy: not called CC=1 SCAR=6.9
Pod documented
30 }
31  
32 # Everybody can be happy.
33 sub everybody {
34 0 ▶ return 'Everybody can be happy.';
Subroutine everybody: not called CC=1 SCAR=6.9
Pod documented
35 }
36  
37 4 1;
38  
39 __END__
↑ Summary