Branch Coverage

blib/lib/Config/File.pm
Criterion Covered Total %
branch 9 12 75.0


line true false branch
16 0 2 unless $fh = 'IO::File'->new($file, 'r')
24 1 10 if $line =~ /^\s*#/
27 0 10 if $line =~ /^\s*$/
29 2 0 exists $conf->{$1} ? :
32 1 9 unless ($line =~ /\s*([^\s=]+)\s*=\s*(.*?)\s*$/)
38 1 8 unless ($conf_ele =~ /^[\]\[A-Za-z0-9_-]+$/)