File Coverage

blib/lib/HTML/Tested/List/Pager.pm
Criterion Covered Total %
statement 15 16 93.7
branch n/a
condition n/a
subroutine 6 7 85.7
pod 0 4 0.0
total 21 27 77.7


line stmt bran cond sub pod time code
1 1     1   74605 use strict;
  1         3  
  1         42  
2 1     1   6 use warnings FATAL => 'all';
  1         2  
  1         61  
3              
4             package HTML::Tested::List::Pager;
5 1     1   529 use HTML::Tested::Value;
  1         4  
  1         603  
6              
7             sub new {
8 1     1 0 20 my ($class, $entries_per_page) = @_;
9 1         21 return bless({ entries_per_page => $entries_per_page }, $class);
10             }
11              
12 0     0 0 0 sub entries_per_page { return shift()->{entries_per_page}; }
13              
14             sub init {
15 1     1 0 3 my ($self, $the_list, $parent) = @_;
16 1         6 my $ln = $the_list->name;
17 1         19 $parent->ht_add_widget("HTML::Tested::Value", "$ln\_current_page");
18             }
19              
20 1     1 0 2 sub render {
21             }
22              
23             1;