Branch Coverage

blib/lib/Text/MetaText/Factory.pm
Criterion Covered Total %
branch 22 32 68.7


line true false branch
106 14 0 $self->_configure($cfg) ? :
148 0 230 unless (defined($type = shift @$tokens) and not ref $type)
161 19 211 if ($uctype =~ /^END(BLOCK|IF)?$/o)
167 37 174 if ($uctype =~ /^DEFINE$/o)
170 0 37 @$tokens && !ref($$tokens[0]) ? :
178 97 77 if ($uctype =~ /^(INCLUDE|SUBST|BLOCK)$/o)
181 0 97 unless (@$tokens and not ref $$tokens[0])
205 169 9 ref $token eq 'ARRAY' ? :
216 58 120 if (defined $$Text::MetaText::Factory::CONTROL{$uctype}{$ucname}) { }
228 0 230 unless (defined($directive = $$self{'DIRECTIVE'}->new($directive)))
287 0 0 defined $self ? :
381 336 169 if ($6 or $8) { }
384 0 336 defined $6 ? :
390 71 98 defined $1 ? :
71 98 defined $1 ? :
424 0 0 defined $msg ? :