Branch Coverage

blib/lib/Class/DBI/Plugin/Pager.pm
Criterion Covered Total %
branch 44 62 70.9


line true false branch
101 4 0 if UNIVERSAL::isa($caller, 'Class::DBI')
104 0 4 unless $caller
182 10 5 if $class eq 'Class::DBI::Plugin::Pager'
194 18 12 unless @_
198 7 5 if (ref $_[0] or $_[0] =~ /^\d+$/) { }
200 7 0 if ref $_[0]
201 2 5 if ref $_[0] eq 'HASH'
205 6 1 unless $_[0] and $_[0] =~ /^\d+$/
206 7 0 if $_[0] and $_[0] =~ /^\d+$/
207 7 0 if $_[0] and $_[0] =~ /^\d+$/
223 1 11 if $abstract_attr and not $order_by
225 12 0 if $per_page
226 7 5 if $syntax
227 3 9 if $abstract_attr
228 12 0 if $where
229 12 0 if $order_by
230 12 0 if $page
254 12 3 unless $self->abstract_attr
256 1 14 unless ref $order_by
262 2 13 if ($phrase =~ /^\s*ORDER\s*/i)
293 1 1 unless (@_)
299 1 0 ref $_[0] || $_[0] =~ /^\d+$/ ? :
314 0 15 if (ref $where eq 'HASH' and $$where{'1'})
329 0 15 if $self->entries_per_page < 1
331 0 15 unless defined $self->current_page
332 0 15 if $self->current_page < $self->first_page
333 0 15 if $self->current_page > $self->last_page
402 1 18 if (ref $syntax eq 'CODE')
408 0 18 $syntax =~ /::/ ? :
410 0 18 unless $format_class->require
473 0 10 if $not_supported{$driver}