blib/lib/RDF/Simple/Serialiser.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 22 | 37 | 59.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
167 | 3 | 0 | 4 | $id =~ /^[#:]/ and $self->_looks_like_legal_id(substr($id, 1)) |
190 | 14 | 0 | 0 | $obj =~ /^[#:]/ and $self->_looks_like_legal_id(substr($obj, 1)) |
230 | 19 | 3 | 0 | $s =~ /$RDF::Simple::Serialiser::RE{'URI'}/ && $s =~ /.#./ |
245 | 4 | 17 | 5 | $s =~ /\A\w/ && $s =~ /\A[-:_a-z0-9]+\z/ |
324 | 5 | 0 | 27 | defined $uri and not $uri =~ /^http/ |
line | l | !l | condition |
---|---|---|---|
183 | 0 | 8 | $self->nodeid_prefix || '_id:' |
228 | 22 | 0 | shift() || '' |
242 | 26 | 0 | shift() || '' |
308 | 0 | 4 | $self->nodeid_prefix || '_id:' |
400 | 15 | 0 | shift() || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
167 | 0 | 1 | 7 | $self->_looks_like_uri($id) or $self->_looks_like_legal_id($id) |
1 | 4 | 3 | $self->_looks_like_uri($id) or $self->_looks_like_legal_id($id) or $id =~ /^[#:]/ and $self->_looks_like_legal_id(substr($id, 1)) | |
190 | 0 | 0 | 14 | $self->_looks_like_uri($obj) or $self->_looks_like_legal_id($obj) |
0 | 0 | 14 | $self->_looks_like_uri($obj) or $self->_looks_like_legal_id($obj) or $obj =~ /^[#:]/ and $self->_looks_like_legal_id(substr($obj, 1)) |