Branch Coverage

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


line true false branch
553 0 12 $^O =~ /mswin/i ? :
0 12 $^O =~ /mswin/i ? :
0 12 $^O =~ /mswin/i ? :
566 0 5 unless ref $options eq 'HASH'
567 4 0 $CTK::Script =~ /^(.+?)\.(pl|t|pm|cgi)$/ ? :
570 0 5 unless ref $plugins
571 0 5 unless ref $plugins eq 'ARRAY'
616 0 20 if isTrueFlag($args{$mode})
621 4 1 unless (defined $root and length $root)
627 4 1 unless (defined $configfile and length $configfile)
633 5 0 unless (defined $temp and length $temp)
639 5 0 unless (defined $tempfile and length $tempfile)
645 5 0 unless (defined $ldir and length $ldir)
651 5 0 unless (defined $logfile and length $logfile)
671 0 0 unless @dbg
674 0 0 unless length $msg
675 0 0 if $self->logmode and $self->can('log_debug')
676 0 0 if ($self->debugmode)
677 0 0 if length $ident
686 0 2 if $no_format
692 0 1 if (@err)
695 0 0 if (length $self->{'error'})
696 0 0 if $self->logmode and $self->can('log_error')
697 0 0 if ($self->debugmode)
698 0 0 if length $ident
708 0 5 if defined $s
709 5 0 $self->{'status'} ? :
723 1 0 $rev =~ /(\d+\.?\d*)/ ? :
729 0 0 unless $opts
730 0 0 unless defined $key
744 0 0 if defined $dir
750 0 0 if defined $dir
756 0 0 if defined $dir
764 0 0 if defined $file
770 0 0 if defined $file
776 0 2 if defined $file
789 0 8 if $in->{$plugin}{'inited'}
791 2 6 exists $CTK::PLUGIN_ALIAS_MAP{$plugin} ? :
795 8 0 if ($loading_status) { }
796 8 0 if (my $init = $module->can('init'))
814 0 8 if exists $INC{$file}
816 0 8 if ($@)
825 0 4 unless defined $prj
828 0 4 unless length $prj