Branch Coverage

blib/lib/Siebel/Srvrmgr/Daemon.pm
Criterion Covered Total %
branch 40 94 42.5


line true false branch
543 0 46 unless defined $cmd
547 10 0 unless $cmd =~ /^load/ or $cmd =~ /^list/ or $cmd =~ /^set\sdelimiter\s[[:graph:]]/ or $cmd =~ /^exit/
577 4 0 if (scalar @{$cmds_ref;} > 1) { }
605 10 12 if ($self->has_lock)
632 0 27 unless $ref_type eq 'ARRAY' or $ref_type eq 'SCALAR'
637 3 24 if ($ref_type eq 'ARRAY') { }
668 0 20 if ($self->get_field_del) { }
701 5 0 if defined $self->get_server
706 5 0 if $self->use_perl
744 3 1091 if (ref $content eq 'ARRAY') { }
750 0 3 if ($line =~ /$siebel_error/) { }
754 0 0 if ($line =~ /$adm_60070/)
756 0 0 if $logger->is_warn
762 0 0 if ($line =~ /$adm_02043/)
766 0 0 if ($line =~ /$adm_02071/)
770 0 0 if ($line =~ /$adm_02049/)
774 0 0 if ($line =~ /$adm_02751/) { }
787 0 3 if $logger->is_debug
802 1 1090 if ($content =~ /$siebel_error/) { }
806 0 1 if ($content =~ /$adm_60070/)
808 0 0 if $logger->is_warn
814 1 0 if ($content =~ /$adm_02043/)
818 0 0 if ($content =~ /$adm_02071/)
822 0 0 if ($content =~ /$adm_02049/)
826 0 0 if ($content =~ /$adm_02751/) { }
839 0 1090 if $logger->debug
876 4 11 if ($self->has_lock)
884 15 0 if ($logger->is_warn)
886 0 15 if $SIG_ALARM
888 0 15 if $SIG_INT
890 0 15 if $SIG_PIPE
895 0 15 if $logger->is_info
924 8 2 if (-e $lock_file) { }
926 0 8 unless open my $in, '<', $lock_file
928 0 8 unless flock $in, 6
934 2 6 if $pid != $$
941 0 2 unless open my $out, '>', $lock_file
943 0 2 unless flock $out, 6
958 2 2 if (-e $lock_file) { }
960 0 2 unless unlink $lock_file
985 4 0 if ($Siebel::Srvrmgr::Daemon::Config{'osname'} =~ /^linux$/i)
992 0 0 if ($Siebel::Srvrmgr::Daemon::Config{'osname'} =~ /^aix$/i)
999 0 0 if ($Siebel::Srvrmgr::Daemon::Config{'osname'} =~ /^hpux$/i)
1006 0 0 if ($Siebel::Srvrmgr::Daemon::Config{'osname'} =~ /^mswin32$/i)
1008 0 0 if (defined $ENV{'HOMEDIR'}) { }
1022 0 0 if ($Siebel::Srvrmgr::Daemon::Config{'osname'} =~ /^solaris$/i) { }
1036 0 4 unless defined $lock_dir