Branch Coverage

blib/lib/Locale/TextDomain/OO/Extract/Xslate.pm
Criterion Covered Total %
branch 29 42 69.0


line true false branch
52 0 4 if $@
97 118 2092 if $ast and ref $ast eq 'Text::Xslate::Symbol'
98 1776 434 unless $ast and ref $ast eq 'ARRAY'
101 98 336 if (my $addl_l10n_fns = $self->addl_l10n_function_re)
111 20 714 if ($sym->arity eq 'methodcall' and $sym->value eq '.') { }
34 680 elsif ($sym->arity eq 'call' and $sym->value eq '(' or $sym->value eq '(call)') { }
113 20 0 if ($second and ref $second eq 'Text::Xslate::Symbol')
114 14 6 if ($second->arity eq 'literal' and $second->value =~ /$l10n_fns/)
119 14 0 if ($third and ref $third eq 'ARRAY' and $third->[0] and ref $third->[0] eq 'Text::Xslate::Symbol') { }
125 14 0 if (_parseMsg(\%msg, $flags, $third)) { }
142 34 0 if ($first and ref $first eq 'Text::Xslate::Symbol')
143 34 0 if ($first->arity eq 'name' and $first->value =~ /$l10n_fns/)
148 34 0 if ($second and ref $second eq 'ARRAY' and $second->[0] and ref $second->[0] eq 'Text::Xslate::Symbol') { }
154 34 0 if (_parseMsg(\%msg, $flags, $second)) { }
168 734 0 if (not $self->debug) { }
208 10 38 if (index($flags, 'p') >= 0)
209 10 0 if (defined $p[0] and $p[0]->arity eq 'literal') { }
218 8 40 if (index($flags, 'n') >= 0) { }
219 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]) { }
231 40 0 if (defined $p[0] and $p[0]->arity eq 'literal') { }
240 0 48 if $@