Branch Coverage

lib/MP3/PodcastFetch/TagManager.pm
Criterion Covered Total %
branch 1 76 1.3


line true false branch
89 6 0 unless $upgrade_type
90 0 0 unless $$self{$upgrade_type} ||= $self->load_tag_fixer_code($upgrade_type)
109 0 0 unless ($$self{'duration_getter'})
111 0 0 if (eval { do { require Audio::TagLib; 1 } }) { }
0 0 elsif (eval { do { require MP3::Info; 1 } }) { }
0 0 elsif (eval { do { require MP3::Tag; 1 } }) { }
142 0 0 unless my $info = MP3::Info::get_mp3info($filename)
157 0 0 unless defined $file
172 0 0 unless open OLDOUT, '>&', \*STDOUT
173 0 0 unless open OLDERR, '>&', \*STDERR
176 0 0 unless my $file = 'MP3::Tag'->new($filename)
192 0 0 if lc $upgrade_type eq 'id3v1' or lc $upgrade_type eq 'id3v2.3'
193 0 0 if lc $upgrade_type eq 'id3v2.4'
194 0 0 if lc $upgrade_type eq 'auto'
211 0 0 unless $loaded
212 0 0 lc $self->upgrade_tags eq 'id3v1' ? :
218 0 0 unless $loaded
225 0 0 unless $loaded
243 0 0 if @_
250 0 0 unless defined $mp3
255 0 0 if defined $$tags{'genre'}
256 0 0 if defined $$tags{'title'}
257 0 0 if defined $$tags{'album'}
258 0 0 if defined $$tags{'artist'}
259 0 0 if defined $$tags{'comment'}
260 0 0 if defined $$tags{'year'}
277 0 0 unless open OLDOUT, '>&', \*STDOUT
278 0 0 unless open OLDERR, '>&', \*STDERR
281 0 0 $v2 ? :
282 0 0 unless my $mp3 = 'MP3::Tag'->new($filename)
284 0 0 if defined $$tags{$_}
293 0 0 unless my $mp3 = 'MP3::Info'->new($filename)
294 0 0 if defined $$tags{'title'}
295 0 0 if defined $$tags{'genre'}
296 0 0 if defined $$tags{'album'}
297 0 0 if defined $$tags{'artist'}
298 0 0 if defined $$tags{'comment'}
299 0 0 if defined $$tags{'year'}