blib/lib/XML/Builder.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 25 | 50 | 50.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
47 | 32 | 0 | 0 | defined $pfx and $pfx ne $registered_pfx |
56 | 0 | 3 | 1 | $uri eq "" and not exists $pfxmap{''} |
66 | 7 | 3 | 0 | length $pfx and not $pfx =~ /[\w-]/ |
294 | 0 | 0 | 0 | "us-ascii" eq $r_enc and grep {$_ eq $self_enc;} "utf-8", "iso-8859-1" |
380 | 40 | 0 | 0 | "SCALAR" eq ref $_[0] and "foreach" eq ${$_[0];} |
418 | 0 | 3 | 5 | @out > 1 and not wantarray |
544 | 0 | 40 | 17 | @$param and "HASH" eq ref $param->[0] |
line | l | !l | condition |
---|---|---|---|
30 | 0 | 8 | $self->encoding ||= "us-ascii" |
31 | 0 | 8 | $self->nsmap ||= {} |
205 | 0 | 10 | $self->qname_for_localname ||= {} |
440 | 57 | 0 | $self->attr || {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
187 | 2 | 1 | 1 | $thing->can('as_string') || overload::Method($thing, '""') |
214 | 87 | 0 | 0 | $self->builder || XML::Builder::Util::croak('XML::Builder for this NS object has gone out of scope') |
218 | 36 | 51 | 0 | $self->qname_for_localname->{$name} ||= $builder->new_qname("name", $name, "ns", $self) |
294 | 1 | 0 | 0 | $self_enc eq $r_enc or "us-ascii" eq $r_enc and grep {$_ eq $self_enc;} "utf-8", "iso-8859-1" |
370 | 38 | 13 | 0 | '' eq $pfx || '' eq $uri |
389 | 40 | 0 | 0 | $self->builder || XML::Builder::Util::croak('XML::Builder for this QName object has gone out of scope') |
405 | 8 | 0 | 0 | $self->builder || XML::Builder::Util::croak('XML::Builder for this QName object has gone out of scope') |