Branch Coverage

blib/lib/XML/Essex/Model.pm
Criterion Covered Total %
branch 36 80 45.0


line true false branch
191 1 8 if substr($name, 0, 1) eq '{'
193 0 8 if ($name =~ /(.*):(.*)/)
206 0 2 if /^\{(.*)\}(.*)\z/
209 0 2 if $name =~ /(.*):(.*)/
219 0 0 unless defined $local_name
221 0 0 unless defined $ns and length $ns
224 0 0 if $ns =~ /foo/
255 0 1 if not ref $proto and $proto eq 'XML:Essex::start_doc'
303 1 0 exists $$$self{'Encoding'} && $$$self{'Encoding'} ? :
1 0 exists $$$self{'Standalone'} && defined $$$self{'Standalone'} ? :
355 0 1 if not ref $proto and $proto eq 'XML:Essex::end_doc'
417 3 4 !ref($_[0]) ? :
426 2 1 $attrs ? :
454 0 14 if (defined $$$self{'NamespaceURI'} and length $$$self{'NamespaceURI'})
471 14 0 keys %$a ? :
473 0 33 if (defined $$_{'NamespaceURI'} and length $$_{'NamespaceURI'})
510 1 0 unless exists $$$self{'_TiedAttributes'}
522 0 0 unless $ok
530 0 1 if not ref $proto and $proto eq 'XML:Essex::start_elt'
555 0 0 defined $$$self{'NamespaceURI'} ? :
699 0 4 !ref($_[0]) ? :
701 0 0 @_ ? :
735 0 0 if not ref $proto and $proto eq 'XML:Essex::attr'
769 2 5 !ref($_[0]) ? :
795 0 6 if (defined $$$self{'NamespaceURI'} and length $$$self{'NamespaceURI'})
815 0 1 if not ref $proto and $proto eq 'XML:Essex::end_elt'
886 3 0 if (@_)
889 1 2 if UNIVERSAL::isa($arg1, 'XML::Essex::Event::element')
898 0 3 if (@_ and UNIVERSAL::isa($_[-1], 'XML::Essex::Model::end_element'))
902 0 0 ref $_ eq 'ARRAY' ? :
1 0 !ref($_) ? :
915 0 3 if $$$self{'EndElement'}
925 0 0 if @_
936 0 0 if @_
957 0 3 unless $$$self{'StartElement'}
978 0 0 unless $$$self{'StartElement'}
992 0 1 if not ref $proto and $proto eq 'XML:Essex::elt'
1053 3 2 !ref($_[0]) ? :
1080 0 1 if not ref $proto and $proto eq 'XML:Essex::chars'
1109 1 1 !ref($_[0]) ? :