Condition Coverage

blib/lib/Mojolicious/Plugin/Pager.pm
Criterion Covered Total %
condition 26 40 65.0


and 3 conditions

line !l l&&!r l&&r condition
14 19 0 146 @args && ref $args[-1] eq 'CODE'
63 14 3 5 $total_pages <= $pager_size and not $c->stash('pager.show_prev_next')

or 2 conditions

line l !l condition
26 165 0 $page->{'n'} || 1
32 18 0 shift() // 1
33 19 3 $args->{'current'} || $c->param($c->stash('page_param_name')) || 1
34 0 22 $args->{'size'} || 8
41 4 0 $args->{'total_items'} || $c->stash('total_items') || 0
1 3 $args->{'items_per_page'} || $c->stash('items_per_page') || 20
75 0 2 $config->{'param_name'} || 'page'
76 1 1 $config->{'always_show_prev_next'} || 0
78 0 2 $config->{'classes'}{'current'} || 'active'
79 0 2 $config->{'classes'}{'first'} || 'first'
80 0 2 $config->{'classes'}{'last'} || 'last'
81 0 2 $config->{'classes'}{'next'} || 'next'
82 0 2 $config->{'classes'}{'prev'} || 'prev'
83 0 2 $config->{'classes'}{'normal'} || 'page'

or 3 conditions

line l !l&&r !l&&!r condition
41 0 18 4 $args->{'total'} // $args->{'total_pages'}
18 4 0 ($args->{'total'} // $args->{'total_pages'}) // ($args->{'total_items'} || $c->stash('total_items') || 0) / ($args->{'items_per_page'} || $c->stash('items_per_page') || 20)