blib/lib/Bootylicious/ArticleArchive.pm

filter: Statementstmt 100% 23 / 23 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 32 / 32 CC 2 SCAR 2.5
CC
2
Cov
100%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Bootylicious/Pingback.pm ↑ Summary blib/lib/Bootylicious/Year.pm »
1 package Bootylicious::ArticleArchive;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use base 'Mojo::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use Bootylicious::ArticleArchiveYearly;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Bootylicious::ArticleArchiveMonthly;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 __PACKAGE__->attr('articles');
12 2 __PACKAGE__->attr('year');
13 2 __PACKAGE__->attr('month');
14  
15 sub new {
16 4 ▶ my $self = shift->SUPER::new(@_);
Subroutine new: called CC=2 SCAR=6.9
Pod documented
17  
18 4 ▶ if ($self->month) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->month) 1 3 4
19 1 return Bootylicious::ArticleArchiveMonthly->new(@_);
20 }
21  
22 3 return Bootylicious::ArticleArchiveYearly->new(@_);
23 }
24  
25 2 1;
« blib/lib/Bootylicious/Pingback.pm ↑ Summary blib/lib/Bootylicious/Year.pm »