Condition Coverage

blib/lib/RDF/RDFa/Generator/HTML/Pretty.pm
Criterion Covered Total %
condition 20 39 51.2


and 3 conditions

line !l l&&!r l&&r condition
83 8 0 0 defined $self->{'version'} and $self->{'version'} == 1.1
8 0 0 defined $self->{'version'} and $self->{'version'} == 1.1 and $self->{'prefix_attr'}
108 9 0 4 defined $prefix and $prefix =~ /^[A-Za-z][A-Za-z0-9\_\:\.\-]*$/
182 7 6 0 defined $current_property and $st->predicate->abs eq $current_property
192 13 0 0 $st->object->is_resource and $st->object->abs =~ /^javascript:/i
10 0 0 $self->{'safe_xml_literals'} and $st->object->is_literal
10 0 0 $self->{'safe_xml_literals'} and $st->object->is_literal and $st->object->datatype->value eq 'http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral'
0 10 0 $st->object->is_literal and $st->object->datatype->value eq 'http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral'
248 9 3 1 $interlink and not $st->object->is_literal

or 2 conditions

line l !l condition
22 0 8 $self->{'version'} || '1.0'
0 8 $self->{'title'} || 'RDFa Document'
78 2 9 $opts{'interlink'} || 0
80 0 2 $opts{'notes_heading'} || 'Notes'
323 1 0 $notes_heading || 'Notes'
412 0 7 $icons->{$type} || 'asterisk_yellow'