Branch Coverage

blib/lib/MogileFS/Plugin/FileRefs.pm
Criterion Covered Total %
branch 0 40 0.0


line true false branch
15 0 0 unless MogileFS::register_worker_command('add_file_ref', \&MogileFS::Plugin::FileRefs::add_file_ref)
17 0 0 unless MogileFS::register_worker_command('del_file_ref', \&MogileFS::Plugin::FileRefs::del_file_ref)
19 0 0 unless MogileFS::register_worker_command('rename_if_no_refs', \&MogileFS::Plugin::FileRefs::rename_if_no_refs)
21 0 0 unless MogileFS::register_worker_command('list_refs_for_dkey', \&MogileFS::Plugin::FileRefs::list_refs_for_dkey)
31 0 0 unless Mgd::validate_dbh()->do('SELECT RELEASE_LOCK(?)', {}, 'mogile-filerefs-' . $_[1]{'domain'} . '-' . $_[1]{'arg1'})
37 0 0 unless my $dmid = $query->check_domain($args)
39 0 0 unless _claim_lock($query, $args)
42 0 0 if ($@ or $dbh->err or $updated < 1)
47 0 0 $updated > 1 ? :
53 0 0 unless my $dmid = $query->check_domain($args)
56 0 0 if ($@ or $dbh->err)
59 0 0 $deleted > 0 ? :
68 0 0 unless my $dmid = $query->check_domain($args)
70 0 0 unless _claim_lock($query, $args)
73 0 0 if ($@ or $dbh->err)
78 0 0 if ($count != 0)
84 0 0 if ($@ or $dbh->err)
95 0 0 unless my $dmid = $query->check_domain($args)
100 0 0 if ($@ or $dbh->err)
114 0 0 unless $dbh->do($store->filter_create_sql(TABLE_fileref()))