Branch Coverage

blib/lib/RDF/aREF/Query.pm
Criterion Covered Total %
branch 39 52 75.0


line true false branch
25 25 1 @items ? :
29 6 26 if ($expr =~ /^(.*)\.$/) { }
10 16 elsif ($expr =~ /^([^\@]*)@([^\@]*)$/) { }
3 13 elsif ($expr =~ /^([^^]*)\^([^^]*)$/) { }
34 10 0 if ($language eq '' or $language =~ /^[a-z]{2,8}(-[a-z0-9]{1,8})*$/i) { }
41 3 0 if ($datatype =~ /^([a-z][a-z0-9]*)_([A-Z_a-z\N{U+00C0}-\N{U+00D6}\N{U+00D8}-\N{U+00F6}\N{U+00F8}-\N{U+02FF}\N{U+0370}-\N{U+037D}\N{U+037F}-\N{U+1FFF}\N{U+200C}-\N{U+200D}\N{U+2070}-\N{U+218F}\N{U+2C00}-\N{U+2FEF}\N{U+3001}-\N{U+D7FF}\N{U+F900}-\N{U+FDCF}\N{U+FDF0}-\N{U+FFFD}\N{U+10000}-\N{U+EFFFF}][A-Z_a-z\N{U+00C0}-\N{U+00D6}\N{U+00D8}-\N{U+00F6}\N{U+00F8}-\N{U+02FF}\N{U+0370}-\N{U+037D}\N{U+037F}-\N{U+1FFF}\N{U+200C}-\N{U+200D}\N{U+2070}-\N{U+218F}\N{U+2C00}-\N{U+2FEF}\N{U+3001}-\N{U+D7FF}\N{U+F900}-\N{U+FDCF}\N{U+FDF0}-\N{U+FFFD}\N{U+10000}-\N{U+EFFFF}0-9\-\.\N{U+00B7}\N{U+0300}-\N{U+036F}\N{U+203F}-\N{U+2040}]*)$/) { }
44 1 2 if $datatype eq $decoder->prefixed_name('xsd', 'string')
52 0 37 if not $_ =~ /^([a-z][a-z0-9]*)_([A-Z_a-z\N{U+00C0}-\N{U+00D6}\N{U+00D8}-\N{U+00F6}\N{U+00F8}-\N{U+02FF}\N{U+0370}-\N{U+037D}\N{U+037F}-\N{U+1FFF}\N{U+200C}-\N{U+200D}\N{U+2070}-\N{U+218F}\N{U+2C00}-\N{U+2FEF}\N{U+3001}-\N{U+D7FF}\N{U+F900}-\N{U+FDCF}\N{U+FDF0}-\N{U+FFFD}\N{U+10000}-\N{U+EFFFF}][A-Z_a-z\N{U+00C0}-\N{U+00D6}\N{U+00D8}-\N{U+00F6}\N{U+00F8}-\N{U+02FF}\N{U+0370}-\N{U+037D}\N{U+037F}-\N{U+1FFF}\N{U+200C}-\N{U+200D}\N{U+2070}-\N{U+218F}\N{U+2C00}-\N{U+2FEF}\N{U+3001}-\N{U+D7FF}\N{U+F900}-\N{U+FDCF}\N{U+FDF0}-\N{U+FFFD}\N{U+10000}-\N{U+EFFFF}0-9\-\.\N{U+00B7}\N{U+0300}-\N{U+036F}\N{U+203F}-\N{U+2040}]*)$/ and $_ ne 'a'
70 0 0 if ($_->{'type'} eq 'literal') { }
0 0 elsif ($_->{'type'} eq 'resource') { }
71 0 0 if ($_->{'datatype'}) { }
96 25 7 if ($subject)
97 2 23 if ($rdf->{'_id'}) { }
98 0 2 if $rdf->{'_id'} ne $subject
105 1 31 if (not @path and $item->{'type'} ne 'resource')
106 1 0 if ($item->{'type'} eq 'any')
107 1 0 $subject ? :
115 48 7 ref $_ && ref $_ eq 'ARRAY' ? :
117 2 35 unless @current
119 11 24 if (@path or $item->{'type'} eq 'resource')
125 7 4 if (@path)
135 13 16 if ($item->{'type'} eq 'literal')
138 5 8 if ($item->{'language'}) { }
2 6 elsif ($item->{'datatype'}) { }
139 8 3 if $_->[1]
141 2 0 if $_->[2]