Branch Coverage

blib/lib/Siebel/Srvrmgr/Daemon/Heavy.pm
Criterion Covered Total %
branch 45 106 42.4


line true false branch
264 2 0 if (not defined $old) { }
271 0 0 if (not $new == $old) { }
780 0 34 if ($logger->is_debug)
782 0 0 if (&openhandle($fh)) { }
813 0 2 if ($self->get_retries >= $self->get_max_retries)
824 0 2 unless -e $self->get_bin
839 0 2 if ($logger->is_debug)
850 0 2 if (not $self->_check_child) { }
866 0 2 if $SIG_INT
872 2 0 if (defined $$data_ref) { }
876 0 2 if $SIG_INT
894 0 22 if $SIG_INT or $SIG_PIPE
907 0 22 if $logger->is_debug
911 0 1089 if $SIG_INT or $SIG_PIPE
913 0 1089 if ($logger->is_debug)
915 0 0 if (defined $line) { }
934 17 1072 if ($line =~ ROWS_RETURNED())
944 22 1050 if ($line =~ /$prompt_regex/) { }
946 2 20 if (not defined $self->get_prompt) { }
0 20 elsif (scalar @{$buffer_ref;} < 1) { }
950 0 2 if $logger->is_info
955 2 0 if (@{$buffer_ref;})
957 0 2 if ($buffer_ref->[0] eq '')
976 0 20 unless (scalar @{$buffer_ref;} >= 1 and $buffer_ref->[0] eq $self->get_last_cmd and $condition->is_cmd_sent)
1008 2 0 if ($self->has_pid) { }
1014 0 2 if (not kill(0, $self->get_pid)) { }
1033 0 0 if (&openhandle(scalar $self->get_error)) { }
1045 0 0 if (defined $read) { }
1047 0 0 if ($read > 0) { }
1072 0 0 if defined $error
1081 0 0 unless &openhandle(scalar $self->get_read)
1083 0 0 unless &openhandle(scalar $self->get_write)
1101 1 6 if ($self->has_pid and $self->get_pid =~ /\d+/) { }
1108 0 6 if ($logger->is_info)
1127 22 0 if (defined $logger and ref $logger)
1136 22 0 if (defined $bytes) { }
1138 0 22 if ($has_logger and $logger->is_debug)
1147 0 0 if ($has_logger) { }
1191 2 1 if ($self->has_pid) { }
1193 1 1 if ($logger->is_warn)
1199 2 0 if (&openhandle(scalar $self->get_write) and not $SIG_PIPE and not $SIG_ALARM) { }
1206 0 2 if ($logger->is_debug)
1223 8 0 if (kill 0, $self->get_pid) { }
1235 2 0 if (kill 0, $self->get_pid) { }
1237 0 2 if ($logger->is_debug)
1248 2 0 if ($ret == $self->get_pid)
1252 0 2 if ($Siebel::Srvrmgr::Daemon::Heavy::Config{'osname'} eq 'MSWin32')
1254 0 0 if (kill 0, $self->get_pid)
1266 0 2 if $logger->is_info
1273 0 0 if ($ret == -1) { }
1275 0 0 if $logger->is_info
1283 0 0 if ($logger->is_warn)
1308 0 1 if $logger->is_info