Branch Coverage

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


line true false branch
184 0 5198 unless (@_ < 3)
190 1275 3923 if (@_) { }
229 0 2670 unless (@_ > 1 and @_ < 4)
237 8 2662 unless (@_)
244 2653 9 if (defined $value) { }
248 2652 1 if (length $value)
252 213 4750 if ($v =~ s/^"//) { }
254 0 213 if ($quote_index < 0) { }
283 0 1337 unless (@_ and @_ < 3)
292 0 1333 unless (@_ and @_ < 3)
327 0 1428 unless (@_ > 1)
339 0 2774 unless length $s
341 1347 1427 if length $value
347 208 2566 if ($substring =~ /\s/) { }
359 1427 1 $old_array_ref ? :
363 0 6 unless (@_ and @_ < 3)
372 1 5 if (@_)
374 0 1 if (defined $ref) { }
386 0 3 unless (@_ and @_ < 3)
395 0 3 if (@_)
397 0 0 if (defined $ref) { }
423 0 1054 unless (@_ == 1)
430 1052 2 if ($ref) { }
438 0 4 unless (@_ == 1)
445 4 0 if ($ref) { }
555 0 1374 unless (@_ == 4)
566 0 1086 unless ($check_type eq 'abs' or $check_type eq 'rel' or $check_type eq 'abs_or_rel')
574 0 1374 if (defined $value_path_index and not $value_path_index =~ /^\d+$/)
582 0 1374 unless ($array_ref)
588 0 1374 unless (defined $directive_name and length $directive_name)
596 27 1347 unless (defined $first_value_path_index and length $first_value_path_index)
603 265 1082 if (defined $value_path_index) { }
604 3 262 if (substr($first_value_path_index, 0, 1) eq '-') { }
605 0 3 if $value_path_index < abs $first_value_path_index
607 0 262 if $value_path_index != $first_value_path_index
614 0 1347 unless (defined $path and length $path)
618 93 1254 if (is_dev_null($path))
626 248 1006 if ($check_type eq 'abs') { }
478 528 elsif ($check_type eq 'rel') { }
528 0 elsif ($check_type eq 'abs_or_rel') { }
632 0 528 unless (defined $sub_ref)
639 117 1137 unless ($sub_ref)
644 1098 39 if ($result) { }
645 511 587 if $check_type eq 'abs_or_rel'
647 236 351 if ($check_type eq 'abs') { }
351 0 elsif ($check_type eq 'rel') { }
648 62 174 'File::Spec'->file_name_is_absolute($path) ? :
650 53 298 'File::Spec'->file_name_is_absolute($path) ? :
661 0 440 unless (@_ < 3)
682 0 128 unless (@_ < 3)
716 0 160 unless (@_ < 3)
737 0 128 unless (@_ < 3)
771 0 390 unless (@_ < 3)
792 0 128 unless (@_ < 3)
814 0 1236 unless (@_ < 3)
820 1234 2 if (@_) { }
840 0 1236 unless (@_ < 3)
846 1234 2 if (@_) { }
1066 0 161 if (is_dev_null($_[0]))
1074 0 86 if (is_dev_null($_[0]))