Condition Coverage

blib/lib/XML/Struct/Reader.pm
Criterion Covered Total %
condition 46 59 77.9


and 3 conditions

line !l l&&!r l&&r condition
47 0 0 2 defined $self->depth and $self->depth == 0
61 40 2 2 $self->depth || 0 and $self->root
42 0 2 $self->depth || 0 and $self->root and $self->simple
73 29 4 9 &blessed($from) and $from->isa('XML::LibXML::Reader')
76 28 5 0 ref $from and ref $from eq 'HASH'
81 5 19 9 not ref $from and $from =~ /^</
19 4 1 ref $from and ref $from eq 'SCALAR'
19 4 0 ref $from and ref $from eq 'GLOB'
19 1 3 &blessed($from) and $from->isa('XML::LibXML::Document')
19 0 1 &blessed($from) and $from->isa('XML::LibXML::Element')
225 151 6 28 defined $self->depth and $stream->depth >= $self->depth
282 0 171 1 $type == 14 and $self->whitespace

or 2 conditions

line l !l condition
61 4 40 $self->depth || 0

or 3 conditions

line l !l&&r !l&&!r condition
47 1 2 0 $self->simple or defined $self->depth and $self->depth == 0
81 0 0 33 not defined $from or $from eq '-'
115 0 0 5 not defined $ns or $ns eq ''
133 40 17 22 $_[0] eq '*' || $_[0] eq $_[1]
261 25 3 2 $self->ns ne 'strip' or not $stream->name =~ /^xmlns(:.*)?$/
280 0 136 369 not $type or $type == 15
282 58 2 172 $type == 3 or $type == 4