Branch Coverage

blib/lib/SQL/Abstract/Limit.pm
Criterion Covered Total %
branch 27 88 30.6


line true false branch
166 2 9 unless $rows
175 8 1 wantarray ? :
215 0 1 if (defined $rows) { }
221 0 0 unless $syntax_name =~ /(?:LimitOffset|LimitXY|LimitYX|RowsTo)/i
232 0 1 wantarray ? :
240 9 3 if defined $_[0] and $_[0] =~ /^\d+$/
265 2 3 unless $_[0]{'limit_dialect'}
272 0 9 unless $rows =~ /^\d+$/
273 0 9 unless $offset =~ /^\d+$/
288 0 9 unless $syntax
294 0 9 if (ref $syntax) { }
296 0 0 if (UNIVERSAL::isa($syntax, 'Class::DBI')) { }
0 0 elsif (eval { do { $syntax->{'Driver'}{'Name'} } }) { }
307 0 9 if (exists $SyntaxMap{lc $syntax}) { }
0 9 elsif (UNIVERSAL::isa($syntax, 'Class::DBI')) { }
324 0 0 if $db
339 0 0 if ($driver eq 'Proxy')
348 0 0 if ($odbc or $ado)
353 0 0 if $odbc
354 0 0 if $ado
356 0 0 unless $name
359 0 0 if $name eq 'Microsoft SQL Server'
360 0 0 if $name eq 'SQL Server'
361 0 0 if $name =~ /Oracle/
362 0 0 if $name eq 'Adaptive Server Anywhere'
363 0 0 if $name eq 'ADABAS D'
372 0 0 unless $driver
387 0 0 unless $dbh
399 0 0 if $syntax
401 0 0 defined $syntax ? :
432 0 3 unless $order
439 3 0 if $ref eq 'ARRAY'
440 0 0 unless $ref
441 0 0 if $ref eq 'SCALAR'
450 0 6 if @spec > 2
451 6 0 unless @spec == 2
454 0 6 unless $up =~ /^(?:ASC|DESC)$/
456 6 0 $up eq 'ASC' ? :
521 1 0 if $offset
550 1 0 if $offset
581 0 0 if $offset
871 1 0 unless defined $asc_desc
873 1 0 $asc_desc eq 'ASC' ? :
877 1 0 $offset ? :