Branch Coverage

lib/XML/Compile.pm
Criterion Covered Total %
branch 23 60 38.3


line true false branch
41 52 0 @_ % 2 ? :
43 0 52 unless $class ne 'XML::Compile'
53 0 52 ref $popts eq 'HASH' ? :
66 0 152 ref $dir eq 'ARRAY' ? :
67 0 152 $^O eq 'MSWin32' ? :
70 50 0 if $el =~ s/\.pm$//i
74 0 152 defined wantarray ? :
97 1 450 unless defined $raw
102 1 449 if (ref $raw and UNIVERSAL::isa($raw, 'XML::LibXML::Node')) { }
0 449 elsif (ref $raw eq 'SCALAR') { }
0 449 elsif (ref $raw eq 'GLOB') { }
449 0 elsif ($raw =~ /^\s*\
0 0 elsif (my $known = $thing->knownNamespace($raw)) { }
0 0 elsif (my $fn = $thing->findSchemaFile($raw)) { }
0 0 elsif (-f $raw) { }
0 0 elsif (not $raw =~ /[\n\r<]/ and $raw =~ m([/\\]|\.xsd$|\.wsdl$)i) { }
115 0 0 unless my $fn = $thing->findSchemaFile($known)
134 0 0 if length $data > 60 and $data =~ /\
141 54 396 wantarray ? :
148 1 0 if ($node->isa('XML::LibXML::Document')) { }
0 0 elsif ($node->isa('XML::LibXML::Element')) { }
159 0 0 if length $text > 75
173 449 0 defined $xml ? :
183 0 0 defined $xml ? :
194 0 0 defined $xml ? :
204 18 58 if (&$code($node))
214 0 50 if @_ == 1
227 0 0 -f $fn ? :
0 1 if 'File::Spec'->file_name_is_absolute($fn)
232 1 0 if -f $full