Branch Coverage

blib/lib/Siebel/Srvrmgr/Daemon.pm
Criterion Covered Total %
branch 42 90 46.6


line true false branch
316 0 6 if ($logger->is_debug)
322 0 0 unless defined $value
324 0 0 if (ref $value ne '') { }
352 4 0 if ($cmds_num == $nodes_num) { }
395 0 71 unless defined $cmd
398 10 0 unless $cmd =~ /^load/ or $cmd =~ /^list/ or $cmd =~ /^set\sdelimiter\s[[:graph:]]/ or $cmd =~ /^exit/
424 6 2 if (scalar @{$cmds_ref;} > 1) { }
448 0 8 unless &blessed($command) eq 'Siebel::Srvrmgr::Daemon::Command'
480 8 12 if ($self->has_lock)
501 0 34 unless $ref_type eq 'ARRAY' or $ref_type eq 'SCALAR'
505 4 30 if ($ref_type eq 'ARRAY') { }
533 1 20 if (defined $delimiter) { }
552 5 0 if $self->use_perl
594 1438 31 unless (ref $content eq 'ARRAY')
603 0 1469 if ($line =~ /$fatal_error/)
609 1 1468 if ($line =~ /$siebel_error/) { }
613 0 1 if ($line =~ /$adm_60070/)
615 0 0 if ($logger->is_warn)
625 1 0 if ($line =~ /$adm_02043/)
629 0 0 if ($line =~ /$adm_02071/)
633 0 0 if ($line =~ /$adm_02049/)
637 0 0 if ($line =~ /$adm_02751/) { }
650 0 1468 if $logger->is_debug
654 1 1467 if $logger->is_warn and $is_error
682 2 4 if ($self->has_lock)
688 3 3 if ($logger->is_warn)
689 0 3 if $SIG_ALARM
691 0 3 if $SIG_INT
693 0 3 if $SIG_PIPE
697 0 6 if $logger->is_info
722 6 2 if (-e $lock_file) { }
723 0 6 unless open my $in, '<', $lock_file
725 0 6 unless flock $in, 6
731 0 6 if $pid != $$
737 0 2 unless open my $out, '>', $lock_file
739 0 2 unless flock $out, 6
752 2 0 if (-e $lock_file) { }
753 0 2 unless unlink $lock_file
775 0 0 if ($Siebel::Srvrmgr::Daemon::Config{'osname'} =~ /^linux$/i)
782 0 0 if ($Siebel::Srvrmgr::Daemon::Config{'osname'} =~ /^aix$/i)
789 0 0 if ($Siebel::Srvrmgr::Daemon::Config{'osname'} =~ /^hpux$/i)
796 0 0 if ($Siebel::Srvrmgr::Daemon::Config{'osname'} =~ /^mswin32$/i)
798 0 0 if (defined $ENV{'HOMEDIR'}) { }
813 0 0 if ($Siebel::Srvrmgr::Daemon::Config{'osname'} =~ /^solaris$/i) { }
827 0 0 unless defined $lock_dir