Condition Coverage

blib/lib/RDF/Endpoint.pm
Criterion Covered Total %
condition 26 70 37.1


and 3 conditions

line !l l&&!r l&&r condition
160 0 0 2 &blessed($arg) and $arg->isa('RDF::Trine::Model')
182 2 0 0 $config->{'endpoint'}{'load_data'} and $config->{'endpoint'}{'update'}
250 7 3 0 defined $ct and $ct eq 'application/sparql-query'
7 3 0 defined $ct and $ct eq 'application/sparql-update'
263 0 0 0 $config->{'endpoint'}{'update'} and $req->method eq 'POST'
291 0 0 2 $config->{'endpoint'}{'update'} and $req->method eq 'POST'
310 0 4 3 $config->{'endpoint'}{'update'} and $req->method eq 'POST'
342 0 0 0 defined $etag and $etag eq $match
352 7 0 0 $protocol_specifies_update_dataset and $query->specifies_update_dataset
387 0 0 0 not $stype =~ /html/ and my $sclass = $RDF::Trine::Serializer::media_types{$stype}
440 0 0 0 $req->method ne 'POST' and $content =~ /read-only queries/ms
471 2 0 1 not $stype =~ /html/ and my $sclass = $RDF::Trine::Serializer::media_types{$stype}
547 0 0 3 defined $cached_etag and $etag eq $cached_etag

or 2 conditions

line l !l condition
207 10 0 $config->{'endpoint'}{'endpoint_path'} || '/sparql'
221 0 0 $ENV{'RDF_ENDPOINT_SHAREDIR'} || eval {
240 5 5 $headers->header('Accept') || 'application/sparql-results+xml'
246 10 0 $req->headers->header('Accept-Encoding') || ''
316 0 7 scalar @default or scalar @named
332 0 7 scalar @named or scalar @default
339 0 7 $headers->header('if-none-match') || ''
408 7 0 &choose(\@variants, $headers) || 'application/sparql-results+xml'
477 2 0 $ENV{'RDF_ENDPOINT_SHAREDIR'} || eval {
543 5 0 $model->etag || ''
651 1 0 $ENV{'RDF_ENDPOINT_SHAREDIR'} || eval {
770 0 0 $config->{'endpoint'}{'html'}{'image_width'} || 200
825 0 7 $req->logger || sub {
841 0 0 &choose(\@variants, $headers) || 'text/plain'

or 3 conditions

line l !l&&r !l&&!r condition
491 0 10 0 $response->body || $content