Branch Coverage

lib/Template/Plugin/XML/File.pm
Criterion Covered Total %
branch 11 30 36.6


line true false branch
25 8 4 @_ && ref $_[-1] eq 'HASH' ? :
34 11 1 unless defined $$self{'debug'}
36 6 6 if (@_) { }
39 1 5 $XML_PLUGIN->detect_filehandle($source) ? :
46 6 30 if (defined($source = delete $$params{$param}))
54 0 12 unless defined $$self{'type'}
77 0 0 @_ && ref $_[-1] eq 'HASH' ? :
82 0 0 if ($parser = $$self{'libxml'}) { }
83 0 0 if (defined $$self{'name'}) { }
85 0 0 unless eval { do { $dom = $parser->parse_file($$self{'name'}) } }
90 0 0 unless eval { do { $dom = $parser->parse_fh($$self{'handle'}) } }
95 0 0 unless eval { do { require XML::DOM } }
102 0 0 if (defined $$self{'name'}) { }
104 0 0 unless eval { do { $dom = $parser->parsefile($$self{'name'}) } }
112 0 0 unless eval { do { $dom = $parser->parse($text) } }