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
215 0 0 0 defined $dsn and defined $user
0 0 0 defined $dsn and defined $user and defined $pass
242 0 0 0 defined $dead_timeout and $dead_timeout + $dead_retry * $dead_backoff > $now
298 0 0 0 defined $slave_skip_filtering and $slave_skip_filtering eq 'on'
355 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'}
366 0 0 0 defined $flag and $flag == 0
1102 0 0 0 defined $fid and $fid > 0
1539 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
187 0 0 'MogileFS::Config'->server_setting_cached('slave_version') || 0
237 0 0 'MogileFS::Config'->server_setting_cached('slave_dead_retry_timeout') || 15
240 0 0 $self->{'dead_backoff'}{$slave_fulldsn->[0]} || 0
247 0 0 'MogileFS::Config'->server_setting_cached('slave_connect_timeout') || 1
381 0 0 $self->{'raise_errors'} || 0
485 0 0 shift() || 3
561 0 0 eval { do { 0 unless $dbh->selectrow_array(q[SELECT value FROM server_settings WHERE field='schema_version']) } } || 0
926 0 0 $dbh->selectrow_array('SELECT MAX(classid) FROM class WHERE dmid = ?', undef, $dmid) || 0
1080 0 0 $arg{'classid'} || 0
1185 0 0 $ret->{$fidid} ||= []
1612 0 0 $age ||= 'old'
1622 0 0 $limit ||= 100
1634 0 0 $limit ||= 1000
1652 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
418 0 0 0 $@ or $self->dbh->err
420 0 0 0 $@ || $self->dbh->errstr
469 0 0 0 $@ or $dbh->err
555 0 0 0 $self->{'_cached_schema_version'} ||= $self->schema_version
935 0 0 0 $@ or $dbh->err
1120 0 0 0 &$fid_in_use($fid) or $fid <= $min_fidid
1340 0 0 0 $@ or $dbh->err
1539 0 0 0 $self->can_replace || $self->can_insertignore