Branch Coverage

lib/Template/Plugin/XML.pm
Criterion Covered Total %
branch 17 30 56.6


line true false branch
20 5 5 @_ && ref $_[-1] eq 'HASH' ? :
23 1 9 if (@_) { }
31 0 99 if defined($source = delete $$params{$_})
43 7 3 unless defined $$self{'debug'}
44 8 2 unless defined $$self{'libxml'}
50 1 0 unless $LIBXML
62 0 0 unless $method = UNIVERSAL::can($parser, $param)
67 0 0 if $@
101 0 1 @_ && ref $_[-1] eq 'HASH' ? :
106 1 0 unless defined $$params{'libxml'}
158 0 7 $OPENHANDLE ? :
167 0 1 if $self->detect_filehandle($_[0])
170 0 1 if $_[0] =~ /^\<\?xml/
173 0 1 if $_[0] =~ //i
177 0 1 if $_[0] =~ /\