Condition Coverage

blib/lib/RDF/aREF/Decoder.pm
Criterion Covered Total %
condition 38 54 70.3


and 3 conditions

line !l l&&!r l&&r condition
53 115 0 5 &blessed($callback) and $callback->isa('RDF::Trine::Model')
116 1 0 22 defined $subject and $subject ne ''
134 58 0 3 exists $predicates->{'_id'} and ($self->resource($predicates->{'_id'}) // '') ne $subject
185 0 7 0 ref $object and $self->{'visited'}{&refaddr($object)}
198 174 7 6 defined $self->{'null'} and $value eq $self->{'null'}
199 0 9 4 $check and $self->{'strict'}

or 2 conditions

line l !l condition
47 32 88 $options{'complain'} // 1
31 89 $options{'strict'} // 0
2 118 $options{'bnode_prefix'} || 'b'
0 120 $options{'bnode_count'} || 0
52 89 31 $options{'callback'} // sub { }
134 2 1 $self->resource($predicates->{'_id'}) // ''
180 2 0 $self->expect_resource($o->{'_id'}, 'object _id') // (next)
272 6 0 $self->iri($6) // (return)
279 9 0 $self->prefixed_name($4, $5) // (return)
312 68 0 $prefix // ''
5 0 $prefix // !1
63 5 $self->{'ns'}{$prefix // ''} // (return $self->error($prefix // !1 ? "unknown prefix: $prefix" : "not an URI: $name"))

or 3 conditions

line l !l&&r !l&&!r condition
149 24 0 85 $_ eq '_id' or $_ eq '_ns'
162 2 0 0 $_ ne '' or $self->{'strict'}
198 7 6 181 not defined $value or defined $self->{'null'} and $value eq $self->{'null'}
357 1 7 0 $self->{'bnode_map'}{$id} //= $self->{'bnode_prefix'} . ++$self->{'bnode_count'}