Condition Coverage

blib/lib/DBIx/BatchChunker.pm
Criterion Covered Total %
condition 46 76 60.5


and 3 conditions

line !l l&&!r l&&r condition
1021 0 0 29 defined $min_id and defined $max_id
1092 1 0 30 defined $self->min_id and defined $self->max_id
1183 403 109 93 $count_stmt and defined $self->dbic_storage
1220 61 0 230 defined $rs and $coderef
1228 144 0 67 $self->single_rows and $coderef
1412 173 0 3 $ls->chunk_count == 0 and $self->min_chunk_percent > 0
1506 0 0 110 $ls->chunk_size and $ls->prev_runtime
1618 0 0 14 $ls->start < 1000000000 and $ls->end < 1000000000

or 2 conditions

line l !l condition
967 16 13 $self->id_name || ''
1607 14 0 $self->sleep || 0

or 3 conditions

line l !l&&r !l&&!r condition
487 16 12 34 not $id_name or $id_name =~ /\./
28 22 12 not $id_name or $id_name =~ /\./ or not defined $self->rs
712 0 0 428 &blessed($val) or not &PerlSafeInt()->check($val)
719 2 0 1748 &blessed($val) or not &PerlSafeInt()->check($val)
727 0 4 3206 &blessed($val) or not &PerlSafeInt()->check($val)
970 0 29 0 $self->progress_bar || 'Term::ProgressBar'->new({'name', 'Calculating ranges' . ($column_name ? " for $column_name" : ''), 'count', 2, 'ETA', 'linear', 'silent', !(-t *STDERR && -t *STDIN)})
1097 0 31 0 $self->progress_bar || 'Term::ProgressBar'->new({'name', $self->progress_name, 'count', $count || 1, 'ETA', 'linear', 'silent', !(-t *STDERR && -t *STDIN)})
1124 605 0 30 $ls->prev_end < $self->max_id or $ls->start
1326 6 0 0 defined $self->rsc or $self->max_stmt
1355 0 0 6 not $new_max_id or $new_max_id eq "0E0"
1404 314 115 176 $self->min_chunk_percent <= 0 or not defined $ls->chunk_count
1447 17 8 0 not defined $lr->{'max'} or $ls->multiplier_range < $lr->{'max'}
1448 6 0 19 $lr->{'min'} || $ls->multiplier_range - $ls->multiplier_step
1480 54 21 0 not defined $lr->{'min'} or $ls->multiplier_range > $lr->{'min'}
1510 61 49 0 $ls->chunk_count || $ls->chunk_size
1653 0 0 14 $ls->start > 1000000000 or $ls->end > 1000000000