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
214 0 0 0 defined $dsn and defined $user
0 0 0 defined $dsn and defined $user and defined $pass
241 0 0 0 defined $dead_timeout and $dead_timeout + $dead_retry * $dead_backoff > $now
297 0 0 0 defined $slave_skip_filtering and $slave_skip_filtering eq 'on'
353 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'}
365 0 0 0 defined $flag and $flag == 0
1100 0 0 0 defined $fid and $fid > 0
1537 0 0 0 $self->can_insert_multi and $self->can_replace || $self->can_insertignore
1927 0 0 0 @devfids > 1 and not $self->can_insert_multi
1971 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)
1988 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)
2019 0 0 0 defined $lock and $lock == 0
2139 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
186 0 0 'MogileFS::Config'->server_setting_cached('slave_version') || 0
236 0 0 'MogileFS::Config'->server_setting_cached('slave_dead_retry_timeout') || 15
239 0 0 $$self{'dead_backoff'}{$$slave_fulldsn[0]} || 0
246 0 0 'MogileFS::Config'->server_setting_cached('slave_connect_timeout') || 1
376 0 0 $$self{'raise_errors'} || 0
484 0 0 shift() || 3
559 0 0 eval { do { 0 unless $dbh->selectrow_array(q[SELECT value FROM server_settings WHERE field='schema_version']) } } || 0
924 0 0 $dbh->selectrow_array('SELECT MAX(classid) FROM class WHERE dmid = ?', undef, $dmid) || 0
1078 0 0 $arg{'classid'} || 0
1183 0 0 $$ret{$fidid} ||= []
1610 0 0 $age ||= 'old'
1620 0 0 $limit ||= 100
1632 0 0 $limit ||= 1000
1650 0 0 $dbh->selectrow_array('SELECT MAX(dmid) FROM domain') || 0
1680 0 0 $dbh->selectrow_array('SELECT MAX(hostid) FROM host') || 0
1726 0 0 shift() || ''
1782 0 0 $what ||= 'type, flags'
2025 0 0 $self->server_setting('fsck_start_maxlogid') || 0
2027 0 0 $self->server_setting('fsck_logid_processed') || 0
2064 0 0 $self->dbh->selectrow_array('SELECT MAX(logid) FROM fsck_log') || 0
2070 0 0 $limit || 100
2071 0 0 $after_logid || 0
2101 0 0 $timegte || 0

or 3 conditions

line l !l&&r !l&&!r condition
417 0 0 0 $@ or $self->dbh->err
419 0 0 0 $@ || $self->dbh->errstr
468 0 0 0 $@ or $dbh->err
552 0 0 0 $$self{'_cached_schema_version'} ||= $self->schema_version
933 0 0 0 $@ or $dbh->err
1118 0 0 0 &$fid_in_use($fid) or $fid <= $min_fidid
1338 0 0 0 $@ or $dbh->err
1537 0 0 0 $self->can_replace || $self->can_insertignore