Condition Coverage

blib/lib/RDF/aREF/Decoder.pm
Criterion Covered Total %
condition 30 54 55.5


and 3 conditions

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

or 2 conditions

line l !l condition
41 4 83 $options{'complain'} // 1
3 84 $options{'strict'} // 0
2 85 $options{'bnode_prefix'} || 'b'
0 87 $options{'bnode_count'} || 0
52 56 31 $options{'callback'} // sub { }
134 0 0 $self->resource($$predicates{'_id'}) // ''
179 2 0 $self->expect_resource($$o{'_id'}, 'object _id') // (next)
272 5 0 $self->iri($6) // (return)
279 8 0 $self->prefixed_name($4, $5) // (return)
312 47 0 $prefix // ''
0 0 $prefix // !1
47 0 $$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 15 0 57 $_ eq '_id' or $_ eq '_ns'
161 1 0 0 $_ ne '' or $$self{'strict'}
198 4 0 121 not defined $value or defined $$self{'null'} and $value eq $$self{'null'}
357 1 3 0 $$self{'bnode_map'}{$id} //= $$self{'bnode_prefix'} . ++$$self{'bnode_count'}