Condition Coverage

blib/lib/Config/General.pm
Criterion Covered Total %
condition 74 114 64.9


and 3 conditions

line !l l&&!r l&&r condition
151 0 59 11 $self->{'DefaultConfig'} and $self->{'InterPolateVars'}
333 0 0 2 $conf{'-FlagBits'} and ref $conf{'-FlagBits'} eq "HASH"
341 0 1 2 $conf{'-DefaultConfig'} and ref $conf{'-DefaultConfig'} eq "HASH"
0 0 1 $conf{'-DefaultConfig'} and ref $conf{'-DefaultConfig'} eq ""
466 59 9 4 $this->{'IncludeGlob'} and $configfile =~ /$glob/
473 3 1 0 not @include and defined $this->{'ConfigPath'}
516 64 0 1 -d $configfile and $this->{'IncludeDirectories'}
542 60 3 1 exists $this->{'files'}{$configfile} and not $this->{'IncludeAgain'}
572 0 64 4 $n_read == 3 && $read_BOM eq "\357\273\277"
578 0 4 64 $n_read and not $has_BOM
597 68 0 15 $flag and $flag eq "SCALAR"
694 0 578 3 not $this->{'ApacheCompatible'} and m[\s*<([^/]+?.*?)/>\s*$]
761 347 0 87 $this->{'IncludeRelative'} and defined $this->{'CurrentConfigFilePath'}
781 2 0 2 $this->{'IncludeGlob'} and $opt =~ /opt/i
2 0 2 $this->{'IncludeGlob'} and $opt =~ /opt/i and not $incl_file =~ /[*?\[\{\\]/
805 13 0 8 $this->{'IncludeRelative'} and $path
13 0 8 $this->{'IncludeRelative'} and $path and not file_name_is_absolute($incl_file)
841 0 3 0 $includeFlag[-1] and /^\s*Define\s+("[^"]+"|\S+)/i
912 181 429 12 $value and $value =~ /^"/
610 2 10 $value and $value =~ /^"/ and $value =~ /"$/
1000 223 0 2 $this->{'ForceArray'} and defined $value
223 0 2 $this->{'ForceArray'} and defined $value and $value =~ /^\[\s*(.+?)\s*\]$/
1259 0 0 0 @two and $one
0 0 0 @two and $one and scalar(@two) % 2 == 0
1358 4 0 1 $this->{'ForceArray'} and scalar @{$config->{$entry};} == 1
4 0 1 $this->{'ForceArray'} and scalar @{$config->{$entry};} == 1 and not ref $config->{$entry}[0]
1514 0 0 1 $file && $hash

or 3 conditions

line l !l&&r !l&&!r condition
47 8 64 0 ref $this || $this
154 0 0 45 ref $self->{'ConfigFile'} eq "GLOB" or ref $self->{'ConfigFile'} eq "FileHandle"
223 11 0 60 $self->{'InterPolateVars'} or $self->{'InterPolateEnv'}
527 5 0 0 not exists $this->{'files'}{$file} or $this->{'IncludeAgain'}
575 2 2 64 $this->{'UTF8'} or $has_BOM
926 1 84 0 $1 || $2
927 7 32 46 $3 || $4
1325 1 0 1 not $config or ref $config ne "HASH"
1397 3 0 73 $line =~ /\n/ or $line =~ /\\$/
1428 1 1 71 $line =~ /^\s/ or $line =~ /\s$/
2 1 70 $line =~ /^\s/ or $line =~ /\s$/ or $this->{'AlwaysQuoteOutput'}