Condition Coverage

blib/lib/Catalyst/Utils.pm
Criterion Covered Total %
condition 37 72 51.3


and 3 conditions

line !l l&&!r l&&r condition
140 0 0 0 $create and not -e $tmpdir
200 0 1 252 defined $path and length $path
213 0 7 6 $dir = pop @dir_list and $dir eq ".."
302 6699 165 49 not $opts->{'ignore_loaded'} and is_class_loaded($class)
337 7770 962 81 $right_ref and $left_ref
407 8 0 0 $ENV{'COLUMNS'} and $ENV{'COLUMNS'} =~ /\A\d+\z/

or 2 conditions

line l !l condition
53 7042 0 shift() || ''
69 1 0 shift() || ''
84 6957 0 shift() || ''
85 6956 1 class2appclass($class) || ''
100 1068 0 shift() || ''
114 6177 0 shift() || ''
115 0 6177 shift() || 0
134 0 0 shift() || ''
135 0 0 shift() || 0
335 1127 7686 ref $righthash->{$key} || ''
336 168 8645 exists $lefthash->{$key} && ref $lefthash->{$key} || ''
589 0 11 $INC{$file} ||= 1
632 0 8 $env->{'SCRIPT_NAME'} || ''
682 0 11 $env->{'SCRIPT_NAME'} || ''
720 0 7 $env->{'SCRIPT_NAME'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
200 0 1 0 $path ||= cwd()
411 0 0 8 -t STDOUT or -t STDERR
435 0 0 0 Term::Size::Any::chars(*STDERR) || Term::Size::Any::chars(*STDOUT)
438 0 0 0 not $width or $width < 80
481 3 0 7 $namespace =~ s/^\+// or $namespace =~ /^Plack::Middleware/
3 0 7 $namespace =~ s/^\+// or $namespace =~ /^Plack::Middleware/ or $namespace =~ /^$class/
570 9 2 0 $as ||= $component
571 6 0 5 $as =~ /^(?:Controller|Model|View)::/ or $given{'skip_mvc_renaming'}