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\x{FFFE}\x{FEFF}]*\
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) { }
116 0 0 unless my $fn = $thing->findSchemaFile($known)
135 0 0 if length $data > 60 and $data =~ /\
142 54 396 wantarray ? :
149 1 0 if ($node->isa('XML::LibXML::Document')) { }
0 0 elsif ($node->isa('XML::LibXML::Element')) { }
160 0 0 if length $text > 75
174 449 0 defined $xml ? :
184 0 0 defined $xml ? :
195 0 0 defined $xml ? :
205 18 58 if (&$code($node))
215 0 50 if @_ == 1
228 0 0 -f $fn ? :
0 1 if 'File::Spec'->file_name_is_absolute($fn)
233 1 0 if -f $full