Branch Coverage

blib/lib/Locale/XGettext/Util/Keyword.pm
Criterion Covered Total %
branch 32 42 76.1


line true false branch
42 1 44 unless defined $arg
43 4 41 unless length $arg
44 37 8 if ($arg =~ /^([1-9][0-9]*)(c?)$/) { }
8 0 elsif ($arg =~ /^"(.*)"$/) { }
48 2 35 if $seen{$pos}++
49 5 30 if ($is_ctx) { }
1 29 elsif ($self->{'plural'}) { }
8 21 elsif ($self->{'singular'}) { }
50 1 4 if $context_seen++
63 1 7 if $comment_seen++
87 18 6 if ($spec =~ s/([,:])[\s]*([1-9][0-9]*c?)[\s]*$//) { }
4 2 elsif ($spec =~ s/([,:])[\s]*"(.*)"[\s]*$//) { }
89 2 16 if ($token =~ /c$/) { }
90 0 2 if ($context_seen)
96 0 16 if ($forms_seen >= 2)
104 9 9 if ":" eq $sep
107 0 4 if ($comment_seen)
117 0 4 if ":" eq $sep
123 0 11 unless length $spec
152 0 0 if $self->context
154 0 0 if $self->plural