Branch Coverage

blib/lib/Ubic/Service/Hypnotoad.pm
Criterion Covered Total %
branch 7 42 16.6


line true false branch
21 1 1 ref $$opt{'bin'} eq 'ARRAY' ? :
22 0 2 unless @$bin
24 0 2 unless length $app
25 0 2 unless file_name_is_absolute($app)
27 0 2 unless file_name_is_absolute($pid_file)
28 0 2 unless length $pid_file
64 0 0 unless open my $fh, '<', $$self{'pid_file'}
76 0 0 if ($$self{'start_time'} and $$self{'start_time'} + $$self{'wait_status'}{'time_to_wait'} > time)
77 0 0 unless $pid
81 0 0 unless ($pid)
86 0 0 if ($$self{'stop_time'} and $$self{'stop_time'} + $$self{'wait_status'}{'time_to_wait'} > time)
95 0 0 unless $pid = $self->_read_pid
98 0 0 unless $pid == $old_pid
100 0 0 $running ? :
108 0 0 if (defined $$self{'cwd'})
109 0 0 unless chdir $$self{'cwd'}
122 0 0 if (defined $$self{'cwd'})
123 0 0 unless chdir $$self{'cwd'}
130 0 0 if length $stderr
140 0 0 unless my $pid = $self->_read_pid
142 0 0 $ret ? :