Branch Coverage

blib/lib/AsciiDB/TagRecord.pm
Criterion Covered Total %
branch 15 26 57.6


line true false branch
31 54 63 unless exists $$self{'_LOADED'}
39 1 61 if $$self{'_READONLY'}
41 0 61 unless exists $$self{'_LOADED'} or not -f $$self{'_FILENAME'}
68 0 0 unless exists $$self{'_LOADED'}
83 0 54 unless open RECORD, $$self{'_FILENAME'}
86 0 54 if $$self{'_LOCK'}
91 216 0 if ($line =~ /^\[(.+)\]:\s?(.*)$/)
116 51 52 if $$self{'_READONLY'} or not $$self{'_UPDATED'}
118 0 52 unless open RECORD, "> $$self{'_FILENAME'}"
121 0 52 if $$self{'_LOCK'}
126 53 155 defined $$self{$fieldName} ? :
133 0 52 if (defined $$self{'_FILEMODE'})
134 0 0 unless chmod $$self{'_FILEMODE'}, $$self{'_FILENAME'}