Condition Coverage

blib/lib/Mojolicious/Plugin/TagHelpers/Pagination.pm
Criterion Covered Total %
condition 42 52 80.7


and 2 conditions

line l !l condition
281 0 0 $c->app->log->warn($@) and return

and 3 conditions

line !l l&&!r l&&r condition
86 25 0 11 $_[3] and ref $_[3] eq 'HASH'
107 35 0 1 &blessed($t) and &blessed($t) eq 'Mojo::URL'
119 16 5 4 $_[1] == -1 and $_[0] > 4
162 4 5 6 $_[0] >= 3 and $_[0] <= $_[1] - 2
215 16 5 10 $_[1] == -1 and $counter <= $_[0]
256 17 0 19 $url and length $url > 0

or 2 conditions

line l !l condition
24 3 0 $param ||= {}
41 1 0 $$plugin{"${_}_end"} ||= ''
47 1 2 $_->{'current_start'} //= '['
48 1 2 $_->{'current_end'} //= ']'
49 0 3 $_->{'page_start'} //= ''
50 0 3 $_->{'page_end'} //= ''
51 1 2 $_->{'prev'} //= '<'
52 1 2 $_->{'next'} //= '>'
53 1 2 $_->{'separator'} //= ' '
54 1 2 $_->{'ellipsis'} //= '...'
55 1 2 $_->{'placeholder'} //= 'page'
79 35 1 $_[0] // 1
95 10 0 $values{$_ . '_end'} ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
119 11 4 21 $_[1] >= 7 or $_[1] == -1 and $_[0] > 4
215 36 10 21 $counter <= $_[1] or $_[1] == -1 and $counter <= $_[0]