Condition Coverage

blib/lib/Attean/API/Model.pm
Criterion Covered Total %
condition 24 46 52.1


and 3 conditions

line !l l&&!r l&&r condition
195 11 185 0 &blessed($n) and $n->does("Attean::API::Binding")
11 101 84 &blessed($n) and $n->isa("Attean::Variable")
256 3 0 1 $head->does('Attean::API::IRI') && $head->value eq $rdf_nil->value
0 1 3 &blessed($head) and not $head->does('Attean::API::IRI') && $head->value eq $rdf_nil->value
334 0 0 2 &blessed($algebra) and $algebra->does("Attean::API::Algebra")
350 0 0 6 &blessed($algebra) and $algebra->does("Attean::API::Algebra")
369 0 3 13 &blessed($_[0]) and $_[0]->does("Attean::API::TermOrVariable")
0 0 3 &blessed($_[0]) and $_[0]->does("Attean::API::TripleOrQuadPattern")

or 2 conditions

line l !l condition
330 2 0 shift() || die('No algebra available in evaluate call')
331 2 0 shift() || die('No default graphs available in evaluate call')
346 6 0 shift() || die('No algebra available in algebra_holds call')
347 6 0 shift() || die('No default graphs available in algebra_holds call')
433 6 0 'Attean'->get_parser($format) || die("Failed to load parser for '${format}'")
434 6 0 $class->new || die("Failed to construct parser for '${format}'")
446 1 0 'Attean'->get_parser($format) || die("Failed to load parser for '${format}'")
447 1 0 $class->new || die("Failed to construct parser for '${format}'")

or 3 conditions

line l !l&&r !l&&!r condition
369 0 13 3 not defined $_[0] or &blessed($_[0]) and $_[0]->does("Attean::API::TermOrVariable")
413 0 0 0 "Attean"->get_parser("media_type", $ct, "filename", $url) // "Attean"->get_parser("ntriples")