Branch Coverage

blib/lib/Data/Edit/Xml/Lint.pm
Criterion Covered Total %
branch 3 120 2.5


line true false branch
66 0 0 unless $lint->source
67 0 0 unless $lint->file
69 0 0 if ($inParallel)
72 0 0 if (my $pid = fork)
82 0 0 if $file =~ /\n/s
86 0 0 if $a
96 0 0 unless $lint->labels
101 0 0 if (my $i = $o->id)
107 0 0 if (my(@labels) = $o->getLabels)
109 0 0 unless $i
120 0 0 if (my $v = `xmllint --version 2>&1`)
121 0 0 unless ($v =~ /\Axmllint/is)
129 0 0 if $d
131 0 0 unless $c
135 0 0 if (my(@errors) = `$c`) { }
147 0 0 if $inParallel
152 0 0 if $lint->source
154 0 0 unless $file
158 0 0 if $a
172 0 0 unless defined $v
173 0 0 if /title/
174 0 0 if $v =~ /--/s
188 0 0 if (//gs)
196 0 0 if (//gs)
204 0 0 if (//gs)
241 0 0 if (my $g = $lint->guid)
242 0 0 if (my $lintFile = $lint->file) { }
243 0 0 if (my $G = $fileToGuid->{$lintFile}) { }
253 0 0 if (my $p = $lint->project)
254 0 0 if (my $l = $lint->labelDefs)
266 0 0 if (&$analysisSub($links, $fileToGuid))
269 0 0 unless $lint->source
271 0 0 if $@
272 0 0 if $@ or not $x
274 0 0 if (my $links = $lint->labelDefs)
278 0 0 unless $source eq $target
283 0 0 if (defined $o->attr('id') and my $i = $o->id)
284 0 0 if (my $labels = $r->{$i})
294 0 0 if (my $pid = fork) { }
299 0 0 if (&$processSub($x, $$links{$lint->project}, $fileToGuid, $lint))
316 0 0 unless $l
317 0 0 if @$l != 1
325 0 0 unless $l
336 0 0 unless $labelDefs and ref($labelDefs) =~ /hash/is
341 0 0 if (my $l = $labelDefs->{$project}{$label})
342 0 0 if @$l > 1
353 0 0 if (my(@m) = &multipleLabelDefs($labelDefs))
367 0 0 unless $labelDefs and ref($labelDefs) =~ /hash/is
372 0 0 if (my $l = $labelDefs->{$project}{$label})
373 0 0 if @$l == 1
384 0 0 if (my(@s) = &singleLabelDefs($labelDefs))
392 0 0 if $p
406 0 0 unless $n > 0
432 0 0 $errors ? :
471 0 0 if $e
472 0 0 if $p
479 0 0 if (my $filesFail = @filesFail)
995 0 1 if eval "eof(${p}::DATA)"
997 0 1 if $@
999 1 0 if $@