Condition Coverage

blib/lib/MogileFS/Store.pm
Criterion Covered Total %
condition 0 121 0.0


and 3 conditions

line !l l&&!r l&&r condition
213 0 0 0 defined $dsn and defined $user
0 0 0 defined $dsn and defined $user and defined $pass
240 0 0 0 defined $dead_timeout and $dead_timeout + $dead_retry * $dead_backoff > $now
296 0 0 0 defined $slave_skip_filtering and $slave_skip_filtering eq 'on'
352 0 0 0 $$self{'max_handles'} and $$self{'handles_left'}-- < 0
0 0 0 $$self{'max_handles'} and $$self{'handles_left'}-- < 0 and not $$self{'lock_depth'}
364 0 0 0 defined $flag and $flag == 0
1099 0 0 0 defined $fid and $fid > 0
1531 0 0 0 $self->can_insert_multi and $self->can_replace || $self->can_insertignore
1929 0 0 0 @devfids > 1 and not $self->can_insert_multi
1973 0 0 0 $self->can_insert_multi && ($self->can_replace || $self->can_insertignore)
0 0 0 @fidids > 1 and not $self->can_insert_multi && ($self->can_replace || $self->can_insertignore)
1990 0 0 0 $self->can_insert_multi && ($self->can_replace || $self->can_insertignore)
0 0 0 @fidids > 1 and not $self->can_insert_multi && ($self->can_replace || $self->can_insertignore)
2021 0 0 0 defined $lock and $lock == 0
2141 0 0 0 defined $dsn and defined $user
0 0 0 defined $dsn and defined $user and defined $pass

or 2 conditions

line l !l condition
185 0 0 'MogileFS::Config'->server_setting_cached('slave_version') || 0
235 0 0 'MogileFS::Config'->server_setting_cached('slave_dead_retry_timeout') || 15
238 0 0 $$self{'dead_backoff'}{$$slave_fulldsn[0]} || 0
245 0 0 'MogileFS::Config'->server_setting_cached('slave_connect_timeout') || 1
375 0 0 $$self{'raise_errors'} || 0
483 0 0 shift() || 3
558 0 0 eval { do { 0 unless $dbh->selectrow_array(q[SELECT value FROM server_settings WHERE field='schema_version']) } } || 0
923 0 0 $dbh->selectrow_array('SELECT MAX(classid) FROM class WHERE dmid = ?', undef, $dmid) || 0
1077 0 0 $arg{'classid'} || 0
1182 0 0 $$ret{$fidid} ||= []
1604 0 0 $age ||= 'old'
1614 0 0 $limit ||= 100
1626 0 0 $limit ||= 1000
1644 0 0 $dbh->selectrow_array('SELECT MAX(dmid) FROM domain') || 0
1682 0 0 $dbh->selectrow_array('SELECT MAX(hostid) FROM host') || 0
1728 0 0 shift() || ''
1784 0 0 $what ||= 'type, flags'
2027 0 0 $self->server_setting('fsck_start_maxlogid') || 0
2029 0 0 $self->server_setting('fsck_logid_processed') || 0
2066 0 0 $self->dbh->selectrow_array('SELECT MAX(logid) FROM fsck_log') || 0
2072 0 0 $limit || 100
2073 0 0 $after_logid || 0
2103 0 0 $timegte || 0

or 3 conditions

line l !l&&r !l&&!r condition
416 0 0 0 $@ or $self->dbh->err
418 0 0 0 $@ || $self->dbh->errstr
467 0 0 0 $@ or $dbh->err
551 0 0 0 $$self{'_cached_schema_version'} ||= $self->schema_version
932 0 0 0 $@ or $dbh->err
1117 0 0 0 &$fid_in_use($fid) or $fid <= $min_fidid
1332 0 0 0 $@ or $dbh->err
1531 0 0 0 $self->can_replace || $self->can_insertignore