Branch Coverage

blib/lib/XML/SAX/Builder.pm
Criterion Covered Total %
branch 34 46 73.9


line true false branch
17 0 4 if ref $class
31 0 41 if $tag eq 'DESTROY'
32 1 40 if $$self{'Prefix'}
71 0 1 unless $prefix
83 14 14 unless ref $_ eq 'XML::SAX::Builder::Tag'
94 2 21 unless $self->_only_one_element(@builders)
100 26 0 if (ref $_ and $_->can('run')) { }
157 2 39 if $class->_is_reserved_name($tag)
160 1 38 if grep {ref $_ eq 'XML::SAX::Builder::Doctype';} @args
161 1 37 unless $class->is_valid_name($tag)
165 0 35 unless $self and $nsup
169 5 30 if $args[0] and ref $args[0] eq 'HASH'
173 16 16 if (ref $_ and $_->can('run')) { }
205 5 5 length $prefix ? :
214 1 39 if $$attr{'xml:lang'} and not $self->_is_valid_lang($$attr{'xml:lang'})
240 0 10 unless $handler and defined $prefix and $uri and $child
242 0 10 if @args > 1
244 0 10 unless ref $child eq 'XML::SAX::Builder::Tag' or ref $child eq 'XML::SAX::Builder::Namespace'
269 0 2 if grep {ref $_;} @args
288 0 4 unless $name
289 0 4 unless $system
326 0 2 unless @_ == 4
328 1 1 if $class->_is_reserved_name($target)