Branch Coverage

blib/lib/SQL/Abstract/Limit.pm
Criterion Covered Total %
branch 27 86 31.4


line true false branch
167 2 9 unless $rows
176 8 1 wantarray ? :
216 0 10 if ($rows) { }
222 0 0 unless $syntax_name =~ /(?:LimitOffset|LimitXY|LimitYX|RowsTo)/i
233 9 1 wantarray ? :
241 9 12 if $_[0] and $_[0] =~ /^\d+$/
266 3 11 unless $_[0]{'limit_dialect'}
273 0 9 unless $rows =~ /^\d+$/
274 0 9 unless $offset =~ /^\d+$/
289 0 9 unless $syntax
295 0 9 if (ref $syntax) { }
297 0 0 if (UNIVERSAL::isa($syntax, 'Class::DBI')) { }
0 0 elsif (eval { do { $$syntax{'Driver'}{'Name'} } }) { }
308 0 9 if (exists $SyntaxMap{lc $syntax}) { }
0 9 elsif (UNIVERSAL::isa($syntax, 'Class::DBI')) { }
325 0 0 if $db
340 0 0 if ($driver eq 'Proxy')
349 0 0 if ($odbc or $ado)
354 0 0 if $odbc
355 0 0 if $ado
357 0 0 unless $name
359 0 0 if $name eq 'Microsoft SQL Server'
361 0 0 if $name eq 'SQL Server'
362 0 0 if $name =~ /Oracle/
363 0 0 if $name eq 'Adaptive Server Anywhere'
364 0 0 if $name eq 'ADABAS D'
373 0 0 unless $driver
388 0 0 unless $dbh
400 0 0 if $syntax
402 0 0 defined $syntax ? :
433 0 3 unless $order
439 3 0 if $ref eq 'ARRAY'
441 0 0 unless $ref
442 0 0 if $ref eq 'SCALAR'
451 0 6 if @spec > 2
452 6 0 unless @spec == 2
455 0 6 unless $up =~ /^(?:ASC|DESC)$/
457 6 0 $up eq 'ASC' ? :
522 1 0 if $offset
551 1 0 if $offset
582 0 0 if $offset
873 1 0 $asc_desc eq 'ASC' ? :
877 1 0 $offset ? :