Condition Coverage

blib/lib/XML/Builder.pm
Criterion Covered Total %
condition 25 50 50.0


and 3 conditions

line !l l&&!r l&&r condition
49 32 0 0 defined $pfx and $pfx ne $registered_pfx
58 0 3 1 $uri eq '' and not exists $pfxmap{''}
68 7 3 0 length $pfx and not $pfx =~ /[\w-]/
288 0 0 0 'us-ascii' eq $r_enc and grep {$_ eq $self_enc;} 'utf-8', 'iso-8859-1'
370 40 0 0 'SCALAR' eq ref $_[0] and 'foreach' eq ${$_[0];}
408 0 3 4 @out > 1 and not wantarray
526 0 38 17 @$param and 'HASH' eq ref $$param[0]

or 2 conditions

line l !l condition
32 0 8 $self->encoding ||= 'us-ascii'
33 0 8 $self->nsmap ||= {}
205 0 10 $self->qname_for_localname ||= {}
428 55 0 $self->attr || {}

or 3 conditions

line l !l&&r !l&&!r condition
189 2 1 1 $thing->can('as_string') || overload::Method($thing, '""')
214 82 0 0 $self->builder || XML::Builder::Util::croak('XML::Builder for this NS object has gone out of scope')
217 33 49 0 $self->qname_for_localname->{$name} ||= $builder->new_qname('name', $name, 'ns', $self)
288 1 0 0 $self_enc eq $r_enc or 'us-ascii' eq $r_enc and grep {$_ eq $self_enc;} 'utf-8', 'iso-8859-1'
360 36 13 0 '' eq $pfx || '' eq $uri
379 40 0 0 $self->builder || XML::Builder::Util::croak('XML::Builder for this QName object has gone out of scope')
395 7 0 0 $self->builder || XML::Builder::Util::croak('XML::Builder for this QName object has gone out of scope')