File Coverage

lib/DBIx/Skinny/Pager/Page.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 15 16 93.7


line stmt bran cond sub pod time code
1             package DBIx::Skinny::Pager::Page;
2 8     8   115770 use strict;
  8         113  
  8         261  
3 8     8   42 use warnings;
  8         84  
  8         214  
4 8     8   47 use base qw(Data::Page);
  8         20  
  8         7910  
5              
6             sub to_hash {
7 1     1 0 101 my $self = $_[0];
8             return +{
9 1         3 total_entries => $self->total_entries,
10             entries_per_page => $self->entries_per_page,
11             previous_page => $self->previous_page,
12             current_page => $self->current_page,
13             next_page => $self->next_page,
14             };
15             }
16              
17             1;
18              
19             __END__