Condition Coverage

blib/lib/DBIx/BatchChunker.pm
Criterion Covered Total %
condition 52 79 65.8


and 3 conditions

line !l l&&!r l&&r condition
1077 0 0 31 defined $min_id and defined $max_id
1149 1 0 32 defined $self->min_id and defined $self->max_id
1204 731 3 1 $self->max_runtime and &DBIx::BatchChunker::time() - $ls->total_timer > $self->max_runtime
1261 527 110 97 $count_stmt and defined $self->dbic_storage
1298 62 0 271 defined $rs and $coderef
1306 149 0 69 $self->single_rows and $coderef
1491 253 0 31 $ls->chunk_count == 0 and $self->min_chunk_percent > 0
130 10 57 $self->target_time and $count_check_time > $self->target_time * "1.05"
1586 0 0 144 $ls->chunk_size and $ls->prev_runtime
1698 0 0 14 $ls->start < 1000000000 and $ls->end < 1000000000

or 2 conditions

line l !l condition
1023 18 13 $self->id_name || ''
1687 14 0 $self->sleep || 0

or 3 conditions

line l !l&&r !l&&!r condition
512 16 14 38 not $id_name or $id_name =~ /\./
30 24 14 not $id_name or $id_name =~ /\./ or not defined $self->rs
761 0 0 454 builtin::blessed($val) or not &PerlSafeInt()->check($val)
768 2 0 1842 builtin::blessed($val) or not &PerlSafeInt()->check($val)
776 0 6 3315 builtin::blessed($val) or not &PerlSafeInt()->check($val)
1026 0 31 0 $self->progress_bar || 'Term::ProgressBar'->new({'name', 'Calculating ranges' . ($column_name ? " for $column_name" : ''), 'count', 2, 'ETA', 'linear', 'silent', !(-t *STDERR && -t *STDIN)})
1154 0 33 0 $self->progress_bar || 'Term::ProgressBar'->new({'name', $self->progress_name, 'count', $count || 1, 'ETA', 'linear', 'silent', !(-t *STDERR && -t *STDIN)})
1181 62 122 582 not defined $ls->prev_end or defined $ls->start
184 551 31 not defined $ls->prev_end or defined $ls->start or $ls->prev_end < $self->max_id
1255 360 0 374 $self->count_rs // $rs
1404 6 0 0 defined $self->rsc or $self->max_stmt
1433 0 0 6 not $new_max_id or $new_max_id eq "0E0"
1482 331 119 284 $self->min_chunk_percent <= 0 or not defined $ls->chunk_count
1590 89 55 0 $ls->chunk_count || $ls->chunk_size
1733 0 0 14 $ls->start > 1000000000 or $ls->end > 1000000000