blib/lib/RDF/Lazy.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 30 | 52 | 57.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
37 | 5 | 1 | 8 | &blessed($namespaces) and $namespaces->isa('RDF::NS') |
64 | 7 | 7 | 0 | $rdf and $rdf =~ m[^http://] |
85 | 0 | 0 | 1 | &blessed($c) and $c->can('get') |
0 | 0 | 1 | &blessed($c) and $c->can('get') and $c->can('set') | |
127 | 7 | 4 | 1 | @_ == 3 and not $_[1] =~ /^[a-z]+$/ |
371 | 0 | 1 | 36 | &blessed($subject) and $subject->isa('RDF::Lazy::Node') |
405 | 0 | 11 | 26 | $property and not ref $property |
11 | 26 | 0 | $property and not ref $property and $property =~ s/^(.+[^_])_$/$1/ | |
410 | 0 | 0 | 7 | &blessed($subject) and $subject->isa('RDF::Lazy::Node') |
430 | 0 | 0 | 1 | &blessed($subject) and $subject->isa('RDF::Lazy::Node') |
line | l | !l | condition |
---|---|---|---|
69 | 7 | 7 | $rdf // 1 |
168 | 0 | 11 | $args{'format'} || 'turtle' |
169 | 0 | 11 | $args{'base'} || 'http://localhost/' |
214 | 2 | 0 | $_[0]->str || '' |
375 | 32 | 5 | $self->uri($property) // (return) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
36 | 7 | 7 | 0 | $args{'namespaces'} || 'RDF::NS'->new('any') |
53 | 0 | 0 | 0 | $rdf->isa('URI') or $rdf->isa('RDF::Trine::Node::Resource') |
324 | 0 | 0 | 7 | not ref $self or $AUTOLOAD =~ /^(.+::)?DESTROY$/ |
349 | 2 | 0 | 1 | $s =~ /$r_string1/ or $s =~ /$r_string2/ |