Branch Coverage

blib/lib/MP3/Tag.pm
Criterion Covered Total %
branch 10 32 31.2


line true false branch
68 0 2 unless -f $$self{'filename'}
94 2 0 if ($self->open)
95 2 0 if (defined($ref = 'MP3::TAG::ID3v2'->new($self)))
99 2 0 if (defined($ref = 'MP3::TAG::ID3v1'->new($self)))
122 0 0 if ($whichTag eq 'ID3v1') { }
0 0 elsif ($whichTag eq 'ID3v2') { }
153 6 0 unless (exists $$self{'FH'})
154 6 0 if (CORE::open FH, $mode . $$self{'filename'}) { }
165 4 0 if (exists $$self{'FH'})
173 12 0 if (exists $$self{'FH'})
180 0 0 if ($length < 0)
184 0 0 if (exists $$self{'FH'})
191 0 8 unless exists $$self{'FH'}
197 0 0 unless exists $$self{'FH'}
203 0 8 unless exists $$self{'FH'}
214 0 0 if (exists $$self{'FH'})