Branch Coverage

blib/lib/CTK.pm
Criterion Covered Total %
branch 31 88 35.2


line true false branch
536 0 12 $^O =~ /mswin/i ? :
0 12 $^O =~ /mswin/i ? :
0 12 $^O =~ /mswin/i ? :
549 0 5 unless ref $options eq "HASH"
550 4 0 $CTK::Script =~ /^(.+?)\.(pl|t|pm|cgi)$/ ? :
553 0 5 unless ref $plugins
554 0 5 unless ref $plugins eq "ARRAY"
599 0 20 if isTrueFlag($args{$mode})
604 4 1 unless (defined $root and length $root)
610 4 1 unless (defined $configfile and length $configfile)
616 5 0 unless (defined $temp and length $temp)
622 5 0 unless (defined $tempfile and length $tempfile)
628 5 0 unless (defined $ldir and length $ldir)
634 5 0 unless (defined $logfile and length $logfile)
654 0 0 unless @dbg
657 0 0 unless length $msg
658 0 0 if $self->logmode and $self->can("log_debug")
659 0 0 if ($self->debugmode)
660 0 0 if length $ident
669 0 2 if $no_format
675 0 1 if (@err)
678 0 0 if (length $self->{'error'})
679 0 0 if $self->logmode and $self->can("log_error")
680 0 0 if ($self->debugmode)
681 0 0 if length $ident
691 0 6 if defined $s
692 6 0 $self->{'status'} ? :
706 1 0 $rev =~ /(\d+\.?\d*)/ ? :
712 0 0 unless $opts
713 0 0 unless defined $key
727 0 0 if defined $dir
733 0 0 if defined $dir
739 0 0 if defined $dir
747 0 0 if defined $file
753 0 0 if defined $file
759 0 2 if defined $file
772 0 8 if $in->{$plugin}{'inited'}
774 2 6 exists $CTK::PLUGIN_ALIAS_MAP{$plugin} ? :
778 8 0 if ($loading_status) { }
779 8 0 if (my $init = $module->can("init"))
797 0 8 if exists $INC{$file}
799 0 8 if ($@)
808 0 4 unless defined $prj
811 0 4 unless length $prj