Branch Coverage

blib/lib/Getopt/XML.pm
Criterion Covered Total %
branch 17 32 53.1


line true false branch
241 0 2 if ref $_[0] eq $Getopt::XML::REF_NAME or undef
242 0 2 if (@_ != 1)
246 1 1 if (ref $xmltree eq 'ARRAY') { }
0 1 elsif (ref $xmltree ne 'HASH') { }
250 0 1 unless defined $sopt
259 0 4 if ($key =~ /^\-/)
262 1 3 if (not defined $val) { }
1 2 elsif (ref $val eq 'ARRAY') { }
0 2 elsif (ref $val eq 'HASH') { }
0 2 elsif (ref $val eq 'SCALAR') { }
330 1 0 if ref $_[0] eq $Getopt::XML::REF_NAME or undef
331 0 1 if (!@_ >= 1)
343 1 0 if (defined $args{'xmlpath'}) { }
348 0 1 unless (defined $subtree)
396 0 0 if ref $_[0] eq $Getopt::XML::REF_NAME or undef
397 0 0 if (!@_ >= 1)