Branch Coverage

blib/lib/Locale/MakePhrase/RuleManager.pm
Criterion Covered Total %
branch 68 116 58.6


line true false branch
520 0 17 unless @_
522 0 17 if $DEBUG > 1
523 0 17 if $DEBUG > 5
535 7 10 if ($chunk =~ /$ltr_re/) { }
2 8 elsif ($chunk =~ /$rtl_re/) { }
8 0 elsif ($chunk =~ /$func_ltr_re/) { }
0 0 elsif ($chunk =~ /$func_rtl_re/) { }
548 0 17 unless $arg
549 0 17 unless $op
550 0 17 unless length $text
551 0 17 unless exists $OPERATORS{$op}
552 0 17 if $arg > $arg_count
553 6 11 if ($text =~ /^(['"])(.*)(["'])$/)
554 6 0 if $1 eq $3
555 6 0 defined $2 ? :
559 0 1 is_number($val) ? :
16 1 defined $val ? :
560 11 6 is_number($text) ? :
561 0 17 if $op_type == 2 and not length $quote
562 0 17 if $op_type == 1 and $text_type != 1
564 0 0 defined $val ? :
0 17 if $DEBUG > 1
567 8 9 if ($func) { }
568 0 8 unless exists $FUNCTIONS{$func}
570 0 8 if $func_type != 0 and $func_type != $op_type
571 0 8 if $val_type == 0 and $func_type != 0
574 6 2 if (@$required) { }
575 0 6 unless length $func_args
578 6 0 if @func_args > 1
581 6 4 if @func_args == $required_arg_count
583 0 6 unless $found
588 0 8 unless defined $val
590 0 0 defined $val ? :
0 8 if $DEBUG > 5
592 0 9 unless defined $val
595 0 17 if $DEBUG > 3
597 0 17 if $op_type == 2 and $val_type != 2 or $op_type == 1 and $val_type != 1
600 0 17 unless @subexpressions
606 9 8 $expr_result ? :
607 0 17 if $DEBUG
660 27 27 unless $r_obj->language eq $language
661 16 11 if ($r_obj->expression) { }
689 0 26 if $DEBUG
706 85 0 defined $1 ? :
707 10 75 if ($chunk eq '[') { }
10 65 elsif ($chunk eq ']') { }
10 55 elsif ($in_group) { }
0 55 elsif (substr($chunk, 0, 1) eq '~') { }
708 0 10 if $in_group
712 0 10 if $in_group
716 10 0 if ($chunk =~ /^_/) { }
718 0 10 if $options
721 0 10 if ($idx >= $arg_count) { }
722 0 0 if $$makephrase{'die_on_bad_translation'}
727 10 0 if (defined $val and length $val)
728 8 2 if (is_number($val)) { }
2 0 elsif ($$makephrase{'translate_arguments'}) { }
738 0 0 if ($$makephrase{'die_on_bad_translation'})