Branch Coverage

blib/lib/Locale/TextDomain/OO/Extract/Xslate.pm
Criterion Covered Total %
branch 27 40 67.5


line true false branch
35 0 2 if $@
80 90 1270 if $ast and ref $ast eq 'Text::Xslate::Symbol'
81 1096 264 unless $ast and ref $ast eq 'ARRAY'
85 20 432 if ($sym->arity eq 'methodcall' and $sym->value eq '.') { }
14 836 elsif ($sym->arity eq 'call' and $sym->value eq '(') { }
87 20 0 if ($second and ref $second eq 'Text::Xslate::Symbol')
88 14 6 if ($second->arity eq 'literal' and $second->value =~ /\AN?(?:loc|_)_(x|n|nx|p|px|np|npx)?\Z/)
93 14 0 if ($third and ref $third eq 'ARRAY' and $third->[0] and ref $third->[0] eq 'Text::Xslate::Symbol') { }
99 14 0 if (_parseMsg(\%msg, $flags, $third)) { }
114 14 0 if ($first and ref $first eq 'Text::Xslate::Symbol')
115 14 0 if ($first->arity eq 'name' and $first->value =~ /\AN?(?:loc|_)_(x|n|nx|p|px|np|npx)?\Z/)
119 14 0 if ($second and ref $second eq 'ARRAY' and $second->[0] and ref $second->[0] eq 'Text::Xslate::Symbol') { }
125 14 0 if (_parseMsg(\%msg, $flags, $second)) { }
139 452 0 if (not $self->debug) { }
179 8 20 if (index($flags, 'p') >= 0)
180 8 0 if (defined $p[0] and $p[0]->arity eq 'literal') { }
189 8 20 if (index($flags, 'n') >= 0) { }
190 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]) { }
202 20 0 if (defined $p[0] and $p[0]->arity eq 'literal') { }
211 0 28 if $@