Branch Coverage

blib/lib/Siebel/Srvrmgr/Daemon/Heavy.pm
Criterion Covered Total %
branch 45 124 36.2


line true false branch
259 2 0 if (not defined $old) { }
266 0 0 if (not $new == $old) { }
742 0 17 if ($logger->is_debug)
744 0 0 if (&openhandle($self->get_read)) { }
756 0 0 if (&openhandle($self->get_error)) { }
775 0 0 if ($/ eq \13)
779 0 0 if ($/ eq 'SCALAR(0x49fa178)SCALAR(0x49fa208)')
783 0 0 if ($/ eq \10) { }
806 0 2 if ($self->get_retries >= $self->get_max_retries)
817 0 2 unless -e $self->get_bin
828 0 2 if ($logger->is_debug)
839 0 2 if (not $self->_check_child($logger)) { }
855 0 2 if $SIG_INT
861 2 0 if (defined $$data_ref) { }
865 0 2 if $SIG_INT
883 0 22 if $SIG_INT or $SIG_PIPE
897 0 22 if $logger->is_debug
901 0 1089 if $SIG_INT or $SIG_PIPE
903 0 1089 if ($logger->is_debug)
905 0 0 if (defined $line) { }
924 17 1072 if ($line =~ ROWS_RETURNED())
934 22 1050 if ($line =~ /$prompt_regex/) { }
936 2 20 if (not defined $self->get_prompt) { }
0 20 elsif (scalar @{$buffer_ref;} < 1) { }
940 0 2 if $logger->is_info
945 2 0 if (@{$buffer_ref;})
947 0 2 if ($$buffer_ref[0] eq '')
966 0 20 unless (scalar @{$buffer_ref;} >= 1 and $$buffer_ref[0] eq $self->get_last_cmd and $condition->is_cmd_sent)
998 2 0 if ($self->has_pid) { }
1004 0 2 if (not kill(0, $self->get_pid)) { }
1023 0 0 if (&openhandle($self->get_error)) { }
1035 0 0 if (defined $read) { }
1037 0 0 if ($read > 0) { }
1045 0 0 if $logger->is_debug
1063 0 0 if defined $error
1072 0 0 unless &openhandle($self->get_read)
1074 0 0 unless &openhandle($self->get_write)
1092 1 7 if ($self->has_pid and $self->get_pid =~ /\d+/) { }
1099 0 7 if ($logger->is_info)
1118 22 0 if (defined $logger and ref $logger)
1127 22 0 if (defined $bytes) { }
1129 0 22 if ($has_logger and $logger->is_debug)
1138 0 0 if ($has_logger) { }
1184 3 0 if (defined $logger and ref $logger)
1191 2 1 if ($self->has_pid) { }
1193 2 0 if ($has_logger and $logger->is_warn)
1199 2 0 if (&openhandle($self->get_write) and not $SIG_PIPE and not $SIG_ALARM) { }
1206 0 2 if ($has_logger and $logger->is_debug)
1215 0 0 if $has_logger
1223 8 0 if (kill 0, $self->get_pid) { }
1235 2 0 if (kill 0, $self->get_pid) { }
1237 0 2 if ($has_logger and $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)
1256 0 0 if $has_logger
1266 0 2 if $has_logger and $logger->is_info
1273 0 0 if ($ret == -1) { }
1275 0 0 if $has_logger and $logger->is_info
1283 0 0 if ($has_logger and $logger->is_warn)
1299 0 0 if $has_logger and $logger->is_warn
1310 0 1 if $has_logger and $logger->is_info