Condition Coverage

blib/lib/Config/General.pm
Criterion Covered Total %
condition 68 111 61.2


and 3 conditions

line !l l&&!r l&&r condition
151 0 69 0 $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 ''
465 58 9 4 $this->{'IncludeGlob'} and $configfile =~ /$glob/
472 3 1 0 not @include and defined $this->{'ConfigPath'}
515 63 1 0 -d $configfile and $this->{'IncludeDirectories'}
539 59 3 1 exists $this->{'files'}{$configfile} and not $this->{'IncludeAgain'}
569 0 63 4 $n_read == 3 && $read_BOM eq "\357\273\277"
575 0 4 63 $n_read and not $has_BOM
594 67 0 15 $flag and $flag eq 'SCALAR'
691 0 577 3 not $this->{'ApacheCompatible'} and m[\s*<([^/]+?.*?)/>\s*$]
758 346 0 87 $this->{'IncludeRelative'} and defined $this->{'CurrentConfigFilePath'}
778 2 0 2 $this->{'IncludeGlob'} and $opt =~ /opt/i
2 0 2 $this->{'IncludeGlob'} and $opt =~ /opt/i and not $incl_file =~ /[*?\[\{\\]/
802 13 0 8 $this->{'IncludeRelative'} and $path
13 0 8 $this->{'IncludeRelative'} and $path and not file_name_is_absolute($incl_file)
839 0 3 0 $includeFlag and /\s*Define\s+("[^"]+"|\S+)/i
903 181 429 11 $value and $value =~ /^"/
610 2 9 $value and $value =~ /^"/ and $value =~ /"$/
991 222 0 2 $this->{'ForceArray'} and defined $value
222 0 2 $this->{'ForceArray'} and defined $value and $value =~ /^\[\s*(.+?)\s*\]$/
1250 0 0 0 @two and $one
0 0 0 @two and $one and scalar(@two) % 2 == 0
1349 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]
1505 0 0 1 $file && $hash

or 3 conditions

line l !l&&r !l&&!r condition
48 8 63 0 ref $this || $this
154 0 0 44 ref $self->{'ConfigFile'} eq 'GLOB' or ref $self->{'ConfigFile'} eq 'FileHandle'
223 11 0 59 $self->{'InterPolateVars'} or $self->{'InterPolateEnv'}
524 5 0 0 not exists $this->{'files'}{$file} or $this->{'IncludeAgain'}
572 2 2 63 $this->{'UTF8'} or $has_BOM
917 1 0 84 $1 || $2
918 7 0 78 $3 || $4
1316 0 0 1 not $config or ref $config ne 'HASH'
1388 3 0 72 $line =~ /\n/ or $line =~ /\\$/
1420 1 1 70 $line =~ /^\s/ or $line =~ /\s$/