Branch Coverage

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


line true false branch
289 0 2 if (defined $old) { }
294 0 0 if ($new == $old) { }
740 0 34 if ($logger->is_debug)
742 0 0 if (&openhandle($fh)) { }
765 0 2 if ($self->get_retries >= $self->get_max_retries)
776 0 2 if ($Siebel::Srvrmgr::Daemon::Heavy::Config{'osname'} eq 'MSWin32') { }
777 0 0 unless -e $conn->get_bin
782 0 2 unless -e $conn->get_bin and -x _
798 0 2 if ($logger->is_debug)
807 2 0 if ($self->_check_child) { }
817 0 2 if $SIG_INT
822 2 0 if (defined $$data_ref) { }
825 0 2 if $SIG_INT
839 0 28 if $SIG_INT or $SIG_PIPE
846 0 28 if $logger->is_debug
849 0 1436 if $SIG_INT or $SIG_PIPE
851 0 1436 if ($logger->is_debug)
853 0 0 if (defined $line) { }
868 21 1415 if ($line =~ ROWS_RETURNED())
877 28 1387 if ($line =~ /$prompt_regex/) { }
879 0 26 do { scalar @{$buffer_ref;} < 1 } ? :
26 2 defined $self->get_prompt ? :
881 0 2 if $logger->is_info
886 2 0 if (@{$buffer_ref;})
888 0 2 if ($buffer_ref->[0] eq '')
902 0 26 unless (scalar @{$buffer_ref;} >= 1 and $buffer_ref->[0] eq $self->get_last_cmd and $condition->is_cmd_sent)
927 2 0 if ($self->has_pid) { }
933 2 0 if (kill 0, $self->get_pid) { }
945 0 0 if (&openhandle(scalar $self->get_error)) { }
954 0 0 if (defined $read) { }
956 0 0 if ($read > 0) { }
975 0 0 if defined $error
982 0 0 unless &openhandle(scalar $self->get_read)
984 0 0 unless &openhandle(scalar $self->get_write)
998 1 2 if ($self->has_pid and $self->get_pid =~ /\d+/) { }
1003 0 2 if ($logger->is_info)
1017 28 0 if (defined $bytes) { }
1019 0 28 if ($logger->is_debug)
1052 2 1 if ($self->has_pid) { }
1054 1 1 if ($logger->is_warn)
1058 2 0 if (&openhandle(scalar $self->get_write) and not $SIG_PIPE and not $SIG_ALARM) { }
1065 0 2 if ($logger->is_debug)
1078 8 0 if (kill 0, $self->get_pid) { }
1087 2 0 if (kill 0, $self->get_pid) { }
1089 0 2 if ($logger->is_debug)
1098 2 0 if ($ret == $self->get_pid)
1102 0 2 if ($Siebel::Srvrmgr::Daemon::Heavy::Config{'osname'} eq 'MSWin32')
1104 0 0 if (kill 0, $self->get_pid)
1113 0 2 if $logger->is_info
1118 0 0 if ($ret == -1) { }
1119 0 0 if $logger->is_info
1127 0 0 if ($logger->is_warn)
1147 0 1 if $logger->is_info