Branch Coverage

blib/lib/Ubic/Service/ZooKeeper.pm
Criterion Covered Total %
branch 12 40 30.0


line true false branch
67 4 0 unless ($$params{'pidfile'})
70 2 2 unless ($$params{'gen_cfg'})
84 1 0 if ($$self{'jmx_enable'})
86 1 0 unless ($$self{'jmx_local_only'})
110 0 1 unless open my $tmp_fh, '>', $tmp_fname
123 9 0 if ($$s{'weight'})
134 0 1 unless close $tmp_fh
135 0 1 unless move($tmp_fname, $fname)
146 0 1 unless open my $tmp_fh, '>', $tmp_fname
148 0 1 unless close $tmp_fh
149 0 1 unless move($tmp_fname, $fname)
160 0 0 if defined $$self{$_}
177 0 0 unless $running
179 0 0 if ($$self{'status'})
190 0 0 unless $sock
197 0 0 if defined $buff
198 0 0 if length $resp >= 4
202 0 0 if ($resp eq 'imok') { }
212 0 0 if defined $$self{'user'}
232 0 0 if defined $$self{'port'}