Tested/List/Pager.pm

filter: Statementstmt 93.7% 15 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 4 totaltotal 77.7% 21 / 27 CC 1 SCAR 1.3
CC
1
Cov
94%
entries_per_page
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Tested/Value/Snippet.pm ↑ Summary Tested/Test/Upload.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package HTML::Tested::List::Pager;
5 1 ▶use HTML::Tested::Value;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
8 1 my ($class, $entries_per_page) = @_;
9 1 return bless({ entries_per_page => $entries_per_page }, $class);
10 }
11  
12 0 ▶sub entries_per_page { return shift()->{entries_per_page}; }
Subroutine entries_per_page: not called CC=1 SCAR=6.9
Pod undocumented
13  
14 1 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
15 1 my ($self, $the_list, $parent) = @_;
16 1 my $ln = $the_list->name;
17 1 $parent->ht_add_widget("HTML::Tested::Value", "$ln\_current_page");
18 }
19  
20 1 ▶sub render {
Subroutine render: called CC=1 SCAR=0.0
Pod undocumented
21 }
22  
23 1 1;
« Tested/Value/Snippet.pm ↑ Summary Tested/Test/Upload.pm »