blib/lib/Webservice/Rosary/Tradition.pm

filter: Statementstmt 100% 22 / 22 Branchbran 100% 10 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 100% 40 / 40 CC 6 SCAR 13.2
CC
6
Cov
100%
opening_intention
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.7
« blib/lib/Webservice/Rosary/API.pm ↑ Summary
1 package Webservice::Rosary::Tradition;
2  
3 2 ▶use v5.10;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use Exporter qw/import/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 our @EXPORT_OK = qw/opening_intention pope_name/;
10  
11 2 ▶sub pope_name {
Subroutine pope_name: called CC=1 SCAR=0.0
Pod documented
12 2 return q{Pope Leo XIV};
13 }
14  
15 6 ▶sub opening_intention {
Subroutine opening_intention: called CC=6 SCAR=17.9
Pod documented
16 6 my $prayer = shift;
17 6 ▶ return q{} if not defined $prayer;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $prayer 1 5 6
18  
19 5 $prayer = lc $prayer;
20  
21 5 ▶ return sprintf q{For the intentions and well-being of %s.}, pope_name()
Branch: 1 branch
BranchTrueFalseTotal
if $prayer eq "our__father_1" 1 4 5
22 if $prayer eq q{our__father_1};
23 4 ▶ return q{For an increase in Faith.} if $prayer eq q{hail__mary_1};
Branch: 1 branch
BranchTrueFalseTotal
if $prayer eq "hail__mary_1" 1 3 4
24 3 ▶ return q{For an increase in Hope.} if $prayer eq q{hail__mary_2};
Branch: 1 branch
BranchTrueFalseTotal
if $prayer eq "hail__mary_2" 1 2 3
25 2 ▶ return q{For an increase in Charity.} if $prayer eq q{hail__mary_3};
Branch: 1 branch
BranchTrueFalseTotal
if $prayer eq "hail__mary_3" 1 1 2
26  
27 1 return q{};
28 }
29  
30 2 1;
31  
32 __END__
« blib/lib/Webservice/Rosary/API.pm ↑ Summary