Branch Coverage

blib/lib/Locale/TextDomain/OO/Extract/Xslate.pm
Criterion Covered Total %
branch 36 48 75.0


line true false branch
50 0 7 if $@
103 133 2460 if $ast and ref $ast eq 'Text::Xslate::Symbol'
104 2069 524 unless $ast and ref $ast eq 'ARRAY'
107 98 426 if (my $addl_l10n_fns = $self->addl_l10n_function_re)
117 1 869 if ref $sym eq 'ARRAY'
119 23 846 if ($sym->arity eq 'methodcall' and $sym->value eq '.') { }
46 800 elsif ($sym->arity eq 'call' and defined $sym->value and $sym->value eq '(' || $sym->value eq '(call)') { }
121 23 0 if ($second and ref $second eq 'Text::Xslate::Symbol')
122 17 6 if ($second->arity eq 'literal' and $second->value =~ /$l10n_fns/)
127 14 3 if ($third and ref $third eq 'ARRAY' and $third->[0] and ref $third->[0] eq 'Text::Xslate::Symbol' and not $third->[0]->arity =~ /^(?: variable | methodcall | field )$/x) { }
3 0 elsif ($third->[0]->arity =~ /^(?: variable | methodcall | field )$/x) { }
134 14 0 if (_parseMsg(\%msg, $flags, $third)) { }
160 46 0 if ($first and ref $first eq 'Text::Xslate::Symbol')
161 43 3 if ($first->arity eq 'name' and $first->value =~ /$l10n_fns/)
166 37 6 if ($second and ref $second eq 'ARRAY' and $second->[0] and ref $second->[0] eq 'Text::Xslate::Symbol' and not $second->[0]->arity =~ /^(?: variable | methodcall | field )$/x) { }
6 0 elsif ($second->[0]->arity =~ /^(?: variable | methodcall | field )$/x) { }
173 37 0 if (_parseMsg(\%msg, $flags, $second)) { }
190 0 860 if ($self->debug) { }
231 10 41 if (index($flags, 'p') >= 0)
232 10 0 if (defined $p[0] and $p[0]->arity eq 'literal') { }
241 8 43 if (index($flags, 'n') >= 0) { }
242 8 0 if (defined $p[0] and $p[0]->arity eq 'literal' and defined $p[1] and $p[1]->arity eq 'literal' and defined $p[2]) { }
256 43 0 if (defined $p[0] and $p[0]->arity eq 'literal') { }
265 0 51 if $@