Branch Coverage

blib/lib/MDV/Distribconf/Checks.pm
Criterion Covered Total %
branch 15 70 21.4


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, $_)
221 0 0 unless -f $distrib->getfullpath($media, $_)
252 0 2 $submedia && -d $self->getfullpath($media, 'path') . '/media_info' ? :
255 0 2 $submedia && -d $self->getfullpath($media, 'path') . '/media_info' ? :
259 0 2 unless -f $hdlist and -f $synthesis
261 0 2 unless $inp
0 2 unless $ind
1 1 if (not defined $inp or @{[] unless $inp;} + @{[] unless $ind;})
262 0 1 unless $inp
1 0 defined $inp ? :
0 1 unless $ind
284 0 2 unless $unsync
1 1 if (@{[] unless $unsync;}) { }
301 0 0 unless $unsync
0 0 if (@{[] unless $unsync;}) { }
326 0 0 unless ($e)
327 0 0 defined $inhd ? :
336 0 0 unless ($self->check_media_md5($media))
346 0 0 unless ($self->check_global_md5)