Branch Coverage

blib/lib/Tie/ConfigFile.pm
Criterion Covered Total %
branch 18 24 75.0


line true false branch
14 1 1 $$self{'readonly'} ? :
0 2 $$self{'create_file'} ? :
0 2 unless $$self{'_fh'} = 'IO::File'->new($$self{'filename'}, ($$self{'readonly'} ? 0 : 2) | ($$self{'create_file'} ? 64 : 0))
44 4 10 if ($line =~ /^\s*$COMM/) { }
2 8 elsif ($line =~ /^\s*$/) { }
8 0 elsif ($line =~ /$SEP/) { }
97 3 28 if $$item{'deleted'}
118 0 2 unless (defined $$self{'filename'})
143 1 2 if ($$self{'readonly'})
147 1 1 if (exists $$self{'_cache'}{'values'}{$key}) { }
176 0 2 if ($$self{'readonly'})
220 0 1 if $count