Condition Coverage

blib/lib/Syntax/Highlight/RDF.pm
Criterion Covered Total %
condition 112 227 49.3


and 3 conditions

line !l l&&!r l&&r condition
494 2 0 0 blessed $thing and $thing->isa('RDF::Trine::Model')
2 0 0 blessed $thing and $thing->isa('RDF::Trine::Model') and $self->can('_serializer')
500 2 0 0 blessed $thing and $thing->isa('RDF::Trine::Iterator')
2 0 0 blessed $thing and $thing->isa('RDF::Trine::Iterator') and $self->can('_serializer')
554 21 22 0 $IS_NOTATION_3 || $IS_SPARQL || $IS_TRIG and $self->_peek('{')
21 22 0 $IS_NOTATION_3 || $IS_SPARQL || $IS_TRIG and $self->_peek('}')
0 43 0 $ABOVE_NTRIPLES and $self->_peek('[')
0 43 0 $ABOVE_NTRIPLES and $self->_peek(']')
0 43 0 $ABOVE_NTRIPLES and $self->_peek('(')
0 43 0 $ABOVE_NTRIPLES and $self->_peek(')')
21 22 0 $IS_NOTATION_3 and $matches = $self->_peek(qr/^([\!\^])/)
0 40 3 $ABOVE_NTRIPLES and $matches = $self->_peek(qr/^([\,\;])/)
0 25 6 $IS_NOTATION_3 || $IS_TURTLE || $IS_TRIG and $matches = $self->_peek(qr/^(\@(?:prefix|base))/)
12 13 0 $IS_NOTATION_3 and $matches = $self->_peek(qr/^(\@(?:keywords|forSome|forAll))/)
12 13 0 $IS_PRETDSL and $matches = $self->_peek(qr/^(RT#[0-9]+)/i)
12 12 1 $IS_PRETDSL and $matches = $self->_peek(qr/^(cpan:\w+)/i)
12 10 2 $IS_PRETDSL and $matches = $self->_peek(qr/^([drfmp]?`.*?`)/i)
12 10 0 $IS_PRETDSL and $matches = $self->_peek(qr/^([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{4}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})?)/i)
12 9 1 $IS_PRETDSL and $matches = $self->_peek(qr/^([0-9]{4}-[0-9]{2}-[0-9]{2})/i)
12 7 2 $IS_PRETDSL and $matches = $self->_peek($pretdslKeyword)
0 10 9 $ABOVE_NTRIPLES and $matches = $self->_peek(qr/^([$nameStartChar2][$nameChar]*)?:([$nameStartChar2][$nameChar]*)?/)
0 10 0 $ABOVE_NTRIPLES and $matches = $self->_peek(qr/^([\-\+]?([0-9]+\.[0-9]*e[\-\+]?[0-9]+))/i)
0 10 0 $ABOVE_NTRIPLES and $matches = $self->_peek(qr/^([\-\+]?(\.[0-9]+e[\-\+]?[0-9]+))/i)
0 10 0 $ABOVE_NTRIPLES and $matches = $self->_peek(qr/^([\-\+]?([0-9]+e[\-\+]?[0-9]+))/i)
0 10 0 $ABOVE_NTRIPLES and $matches = $self->_peek(qr/^([\-\+]?([0-9]+\.[0-9]*))/)
0 10 0 $ABOVE_NTRIPLES and $matches = $self->_peek(qr/^([\-\+]?(\.[0-9]+))/)
0 9 1 $ABOVE_NTRIPLES and $matches = $self->_peek(qr/^([\-\+]?([0-9]+))/)
1 1 0 $IS_NOTATION_3 || $IS_SPARQL and $self->_peek('?')
2 0 0 $IS_SPARQL and $self->_peek('$')
2 0 0 $IS_SPARQL and $self->_peek('*')
0 2 0 $ABOVE_NTRIPLES and $self->_peek('"""') || $self->_peek(q['''])
0 2 0 $ABOVE_NTRIPLES and $self->_peek(q['])
0 0 0 $IS_SPARQL and $matches = $self->_peek($sparqlKeyword)
0 0 0 $IS_SPARQL and $matches = $self->_peek($sparqlFunction)
0 0 0 $IS_SPARQL and $matches = $self->_peek($sparqlAggregate)
0 0 0 $IS_SPARQL and $matches = $self->_peek($sparqlOrdering)
0 0 0 $IS_SPARQL and $matches = $self->_peek($sparqlOperator)
0 0 0 $ABOVE_NTRIPLES and $matches = $self->_peek(qr/^(true|false)\b/i)
0 0 0 $ABOVE_NTRIPLES and $self->_peek(qr/^(a)\b/)
0 0 0 $IS_NOTATION_3 and $matches = $self->_peek(qr/^(=|=>|<=)/)
0 0 0 $IS_TRIG and $self->_peek('=')
0 0 0 $IS_NOTATION_3 and $matches = $self->_peek(qr/^(is|of)\b/i)
0 0 0 $ABOVE_NTRIPLES and $matches = $self->_peek(qr/^([$nameStartChar][$nameChar]*)/)
805 69 0 7 $t->isa(URIRef()) and not defined $t->absolute_uri
69 0 0 $t->isa(Sparql_Keyword()) and lc $t->spelling eq 'base'
63 4 2 $t->isa(AtRule()) and lc $t->spelling eq '@base'
819 0 0 2 defined $$tokens[$i + $j] and $$tokens[$i + $j]->can('uri')
844 72 2 4 $t->isa(AtRule()) and lc $t->spelling eq '@prefix'
74 0 0 $t->isa(Sparql_Keyword()) and lc $t->spelling eq 'PREFIX'
12 62 0 defined $started and $t->isa(CURIE()) || $t->isa(URIRef())
12 31 17 defined $started and @bits == 3
43 13 4 defined $started and @bits == 3 and $t->spelling eq '.'
44 0 4 defined $started and @bits == 3 and $t->spelling eq '.' and $bits[0]->isa(AtRule())
863 4 12 62 not $is_end and defined $started
16 45 17 not $is_end and defined $started and @bits == 3
57 17 0 not $is_end and defined $started and @bits == 3 and $bits[0]->isa(Sparql_Keyword())
940 73 0 9 $t->isa(CURIE()) and defined $t->prefix
73 4 5 $t->isa(CURIE()) and defined $t->prefix and exists $$map{$t->prefix}

or 2 conditions

line l !l condition
110 0 0 $_[0]->absolute_uri // '???'
113 0 0 $_[0]->absolute_uri // '???'
797 0 2 $base //= ''
946 5 0 $t->suffix // ''

or 3 conditions

line l !l&&r !l&&!r condition
542 0 0 0 $self->mode & 1 || $self->mode & 16 || $self->mode & 2 || $self->mode & 8
543 1 0 1 $self->mode & 2 || $self->mode & 8
547 0 0 0 $IS_TURTLE || $IS_NOTATION_3 || $IS_SPARQL || $IS_PRETDSL || $IS_TRIG
554 20 15 43 $self->_peek(' ') or $self->_peek("\n")
35 0 43 $self->_peek(' ') or $self->_peek("\n") or $self->_peek("\r")
15 0 43 $self->_peek(' ') or $self->_peek("\n") or $self->_peek("\r") or $self->_peek("\t")
22 0 21 $IS_NOTATION_3 || $IS_SPARQL || $IS_TRIG
22 0 21 $IS_NOTATION_3 || $IS_SPARQL || $IS_TRIG
31 0 0 $IS_NOTATION_3 || $IS_TURTLE || $IS_TRIG
1 0 1 $IS_NOTATION_3 || $IS_SPARQL
0 0 2 $self->_peek('"""') || $self->_peek(q['''])
781 4 0 3 'URI'->new($relative)->scheme or 'URI'->new($base)->scheme
805 0 0 69 $t->isa(Sparql_Keyword()) and lc $t->spelling eq 'base' or $t->isa(AtRule()) and lc $t->spelling eq '@base'
814 0 2 2 $$tokens[$i + $j]->isa(Comment()) or $$tokens[$i + $j]->isa(Whitespace())
844 9 5 48 $t->isa(CURIE()) || $t->isa(URIRef())