Condition Coverage

lib/XML/Compile/Cache.pm
Criterion Covered Total %
condition 28 44 63.6


or 2 conditions

line l !l condition
32 0 2 delete $args->{'opts_rw'} || []
33 0 2 delete $args->{'opts_readers'} || []
34 0 2 delete $args->{'opts_writers'} || []
35 0 2 delete $args->{'allow_undeclared'} || 0
47 0 2 $args->{'any_element'} || 'ATTEMPT'
57 0 2 $self->{'XCC_typemap'} ||= {}
67 1 2 $self->{'XCC_xsi_type'} ||= {}
74 1 0 $self->namespaces->autoexpand_xsi_type($k) || []
114 2 2 $self->{'XCC_namespaces'} ||= {}
125 2 1 $self->{'XCC_prefixes'} ||= {}
128 1 2 $p->{$ns} ||= {'uri', $ns, 'prefix', $prefix, 'used', 0}
236 0 0 $need || 'RW'
407 0 0 $val ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
116 2 1 1 @_ or defined $first
193 2 1 1 not defined $prefix or $namespaces->{$uri}
300 1 3 0 $readers->{$type} ||= $args{'is_type'} ? $self->compileType('READER', $type, @_) : $self->compile('READER', $type, @_)
338 1 3 0 $writers->{$type} ||= $args{'is_type'} ? $self->compileType('WRITER', $type, @_) : $self->compile('WRITER', $type, @_)
382 3 0 3 $action eq 'READER' || $action eq 'PERL'
397 0 0 3 $opt eq 'hooks' or $opt eq 'hook'