Branch Coverage

blib/lib/Apache/ConfigParser/Directive.pm
Criterion Covered Total %
branch 83 120 69.1


line true false branch
189 0 5161 unless (@_ < 3)
195 1267 3894 if (@_) { }
234 0 2654 unless (@_ > 1 and @_ < 4)
242 8 2646 unless (@_)
249 2637 9 if (defined $value) { }
253 2636 1 if (length $value)
257 211 4664 if ($v =~ s/^"//) { }
259 0 211 if ($quote_index < 0) { }
288 0 1329 unless (@_ and @_ < 3)
297 0 1325 unless (@_ and @_ < 3)
332 0 1418 unless (@_ > 1)
344 0 2728 unless length $s
346 1311 1417 if length $value
352 206 2522 if ($substring =~ /\s/) { }
364 1417 1 $old_array_ref ? :
368 0 6 unless (@_ and @_ < 3)
377 1 5 if (@_)
379 0 1 if (defined $ref) { }
391 0 3 unless (@_ and @_ < 3)
400 0 3 if (@_)
402 0 0 if (defined $ref) { }
428 0 1046 unless (@_ == 1)
435 1044 2 if ($ref) { }
443 0 4 unless (@_ == 1)
450 4 0 if ($ref) { }
560 0 1369 unless (@_ == 4)
571 0 1081 unless ($check_type eq 'abs' or $check_type eq 'rel' or $check_type eq 'abs_or_rel')
579 0 1369 if (defined $value_path_index and not $value_path_index =~ /^\d+$/)
587 0 1369 unless ($array_ref)
593 0 1369 unless (defined $directive_name and length $directive_name)
601 27 1342 unless (defined $first_value_path_index and length $first_value_path_index)
608 263 1079 if (defined $value_path_index) { }
609 3 260 if (substr($first_value_path_index, 0, 1) eq '-') { }
610 0 3 if $value_path_index < abs $first_value_path_index
612 0 260 if $value_path_index != $first_value_path_index
619 0 1342 unless (defined $path and length $path)
623 93 1249 if (is_dev_null($path))
631 248 1001 if ($check_type eq 'abs') { }
477 524 elsif ($check_type eq 'rel') { }
524 0 elsif ($check_type eq 'abs_or_rel') { }
637 0 524 unless (defined $sub_ref)
644 117 1132 unless ($sub_ref)
649 1093 39 if ($result) { }
650 507 586 if $check_type eq 'abs_or_rel'
652 236 350 if ($check_type eq 'abs') { }
350 0 elsif ($check_type eq 'rel') { }
653 62 174 'File::Spec'->file_name_is_absolute($path) ? :
655 53 297 'File::Spec'->file_name_is_absolute($path) ? :
666 0 436 unless (@_ < 3)
687 0 128 unless (@_ < 3)
721 0 160 unless (@_ < 3)
742 0 128 unless (@_ < 3)
776 0 389 unless (@_ < 3)
797 0 128 unless (@_ < 3)
819 0 1228 unless (@_ < 3)
825 1226 2 if (@_) { }
845 0 1228 unless (@_ < 3)
851 1226 2 if (@_) { }
1064 0 161 if (is_dev_null($_[0]))
1072 0 86 if (is_dev_null($_[0]))