Branch Coverage

blib/lib/XML/Directory.pm
Criterion Covered Total %
branch 38 170 22.3


line true false branch
4 1 0 if $] >= 5.006
24 0 2 unless @_ > 1
25 0 2 unless @_ > 2
26 1 1 unless @_ > 3
28 0 2 if $path eq '.'
51 0 1 unless ($$self{'details'} =~ /^[123]$/)
54 0 1 unless ($$self{'depth'} =~ /^\d+$/)
57 1 0 if ($$self{'error'} == 0)
62 0 1 unless chdir $$self{'path'}
70 0 1 if ($$self{'ns_enabled'}) { }
74 0 0 if $$self{'rdf_enabled'}
82 0 1 if ($$self{'details'} > 1)
95 0 1 if $rc == -1
100 0 1 if ($@)
109 0 0 unless @_ > 1
115 0 0 unless @_ > 1
121 0 0 unless @_ > 1
171 0 0 if (@_ > 1) { }
180 0 0 if (@_ > 1) { }
181 0 0 if $val eq 'die'
182 0 0 if $val eq 'warn'
184 0 0 if $$self{'catch_error'} == 0
185 0 0 if $$self{'catch_error'} == 1
196 0 0 if $@
207 0 3 if (defined $code)
238 0 1 if ($$self{'rdf_enabled'})
240 0 0 if (-f $$self{'n3_index'})
244 0 0 if ($@) { }
252 0 0 unless ($rdf_data_P)
258 0 0 if (-f $p_n3)
262 0 0 if ($@) { }
276 0 1 if $$self{'details'} > 1
277 0 1 if $$self{'details'} > 2
278 0 1 if $$self{'details'} > 2
281 0 1 if ($rdf_data)
283 0 0 if ($$rdf{'ns'}{$$rdf{'context'}}{$_} eq 'http://gingerall.org/charlie-doc/1.0/')
291 0 1 if ($rdf_data_P)
294 0 0 unless ($rdf_data and $$rdf{'ns'}{$$rdf{'context'}}{$_} and $$rdf{'ns'}{$$rdf{'context'}}{$_} eq $$rdf_P{'ns'}{$$rdf_P{'context'}}{$_})
300 0 0 if ($rdf_data and $$rdf{'ns'}{$$rdf{'context'}}{$_} and $$rdf{'ns'}{$$rdf{'context'}}{$_} ne $$rdf_P{'ns'}{$$rdf_P{'context'}}{$_})
317 0 1 if $$self{'details'} > 1
321 0 1 if $$self{'details'} > 2
323 0 1 if $$self{'details'} > 1
327 0 1 if ($$self{'details'} > 1)
330 0 0 if ($rdf_data_P)
333 0 0 if ($$rdf_P{'triples'}[$i][0] eq "<$dirname>")
346 0 0 if $$_[1] eq 'http://gingerall.org/charlie-doc/1.0/Type' and $$_[2] eq 'document'
351 0 0 if ($$self{'rdf_enabled'} and not $position_set)
358 0 8 if (-d $d) { }
361 0 0 if ($$self{'depth'} > $level)
366 0 0 unless ($stop)
371 0 0 unless chdir $d
380 0 0 if ($$self{'depth'} == $level)
388 0 0 if $$self{'details'} > 1
389 0 0 if $$self{'details'} > 2
390 0 0 if $$self{'details'} > 2
392 0 0 if ($$self{'details'} == 1) { }
400 0 0 if $$self{'details'} > 2
407 0 0 if ($rdf_data)
410 0 0 if ($$rdf{'triples'}[$i][0] eq "<$d>")
422 0 0 if ($$self{'rdf_enabled'} and not $position_set)
432 8 0 unless ($stop)
433 8 0 unless ($d eq $$self{'n3_index'})
449 0 1 unless ($dh)
458 2 8 if $_ =~ /^(\.{1,2})$/
459 0 8 -d "$path/$_" ? :
462 0 1 if ($self->order_by eq 'fd') { }
0 1 elsif ($self->order_by eq 'a') { }
0 1 elsif ($self->order_by eq 'z') { }
486 0 8 if $$self{'details'} > 2
487 0 8 if $$self{'details'} > 2
489 8 0 if ($$self{'details'} == 1) { }
495 0 0 if (-r $name) { }
496 0 0 if (-w $name) { }
497 0 0 if (-x $name) { }
498 0 0 if $$self{'details'} > 1
500 0 0 if $$self{'details'} > 1
505 0 0 if $$self{'details'} > 2
507 0 0 if $$self{'details'} > 1
513 0 0 if ($rdf_data)
516 0 0 if ($$rdf{'triples'}[$i][0] eq "<$name>")
528 0 0 if ($$self{'rdf_enabled'} and not $position_set)
538 0 0 unless $$self{'ns_enabled'}
539 0 0 $$self{'ns_prefix'} ? :
565 0 0 if (not $@) { }
572 0 0 if $@