Branch Coverage

blib/lib/MDV/Distribconf/Checks.pm
Criterion Covered Total %
branch 16 78 20.5


line true false branch
46 1 0 if (ref $out eq 'CODE') { }
55 1 0 $errs{$err_code} || !1 ? :
69 0 0 unless $self->{'cfg'}->val('media_info', $var)
85 0 0 unless $self->{'cfg'}->val($media, $var)
99 0 0 if ($varinfo->{'deny'})
100 0 0 if ($self->getvalue($media, $varinfo->{'deny'}))
109 0 0 if ($varinfo->{'ismedialist'} or $varinfo->{'cross'})
111 0 0 if (not $self->mediaexists($sndmedia)) { }
0 0 elsif ($varinfo->{'cross'}) { }
121 0 0 unless (grep {$media eq $_;} split(/ /, $self->getvalue($sndmedia, $varinfo->{'cross'}), 0))
145 0 0 if (@{$foundname{$_};} > 1)
172 0 0 unless $distrib->listmedia
185 0 0 if (@{$e{$key};} > 1)
199 0 0 unless -d $distrib->getfullpath($media, 'path')
206 0 0 unless -f $distrib->getfullmediapath($media, $_)
212 0 0 if /^MD5SUM$/
213 0 0 unless -f $distrib->getfullpath($media, $_)
220 0 0 if ($distrib->getvalue($media, 'xml-info'))
222 0 0 unless -f $distrib->getfulldpath($media, $_)
231 0 0 unless -f $distrib->getfullpath($media, $_)
262 0 2 $submedia && -d $self->getfullpath($media, 'path') . '/media_info' ? :
265 0 2 $submedia && -d $self->getfullpath($media, 'path') . '/media_info' ? :
269 0 2 unless -f $hdlist and -f $synthesis
271 0 2 unless $inp
0 2 unless $ind
1 1 if (not defined $inp or @{[] unless $inp;} + @{[] unless $ind;})
272 0 1 unless $inp
1 0 defined $inp ? :
0 1 unless $ind
291 0 2 if ($self->getvalue($media, 'xml-info') and not $self->getvalue($media, 'cdmode'))
299 0 2 unless $unsync
1 1 if (@{[] unless $unsync;}) { }
314 0 0 if ($self->getvalue($media, 'xml-info') and $self->getvalue($media, 'cdmode'))
326 0 0 unless $unsync
0 0 if (@{[] unless $unsync;}) { }
351 0 0 unless ($e)
352 0 0 defined $inhd ? :
361 0 0 unless ($self->check_media_md5($media))
371 0 0 unless ($self->check_global_md5)