Branch Coverage

blib/lib/MogileFS/ReplicationPolicy/MultipleHosts.pm
Criterion Covered Total %
branch 22 28 78.5


line true false branch
18 0 16 unless $$argref =~ s/^\s* \( \s* (\d*) \s* \) \s*//x
40 0 20 if %args
41 0 20 unless $on_devs and $all_devs and $failed and $fid
47 0 20 if $min == 1 and $already_on == 1
65 2 18 if $uniq_hosts_on > $min
66 2 16 if $already_on > $min
67 3 13 if $uniq_hosts_on == $min
68 1 12 if $uniq_hosts_on >= $total_uniq_hosts and $already_on >= $min
76 0 12 if $already_on >= 2 and $already_on == $total_disks
81 11 1 if ($uniq_hosts_on < $total_uniq_hosts)
86 56 20 if not $on_dev{$_->devid} || $$failed{$_->devid}
93 0 12 unless @all_dests
98 1 11 if $already_on >= $min and @ideal == 0
113 3 122 unless $dev->dstate->should_get_repl_files