blib/lib/Bootylicious/ArticleArchiveBase.pm

filter: Statementstmt 85.0% 17 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 25.0% 1 / 4 totaltotal 72.7% 24 / 33 CC 2 SCAR 8.1
CC
2
Cov
77%
month_name
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« blib/lib/Bootylicious/IteratorSearchable.pm ↑ Summary blib/lib/Bootylicious/ArticleIteratorFinder.pm »
1 package Bootylicious::ArticleArchiveBase;
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 __PACKAGE__->attr('articles');
9 2 __PACKAGE__->attr('year');
10  
11 2 my @months = (
12 qw/January February March April May July June August September October November December/
13 );
14  
15 sub new {
16 4 ▶ my $self = shift->SUPER::new(@_);
Subroutine new: called CC=1 SCAR=0.0
Pod documented
17  
18 4 return $self->build;
19 }
20  
21 sub month_name {
22 0 ▶ my $self = shift;
Subroutine month_name: not called CC=2 SCAR=17.9
Pod undocumented
23  
24 0 ▶ return '' unless $self->month;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->month 0 0 0
25  
26 0 return $months[$self->month - 1];
27 }
28  
29 7 ▶sub next { shift->articles->next }
Subroutine next: called CC=1 SCAR=0.0
Pod undocumented
30 3 ▶sub size { shift->articles->size }
Subroutine size: called CC=1 SCAR=0.0
Pod undocumented
31  
32 2 1;
« blib/lib/Bootylicious/IteratorSearchable.pm ↑ Summary blib/lib/Bootylicious/ArticleIteratorFinder.pm »