Branch Coverage

blib/lib/ODO/Query/VariablePatternMap.pm
Criterion Covered Total %
branch 43 76 56.5


line true false branch
52 0 6 unless (UNIVERSAL::isa($stmt, 'ODO::Statement') or $self->__is_pattern_key($stmt))
62 5 1 unless $self->__is_pattern_key($stmt) == 1
67 4 2 unless UNIVERSAL::isa($patternList, 'ARRAY')
79 0 18 if $c eq '*'
81 13 5 exists $self->known_var_map->{$c} ? :
115 0 0 unless $graph
136 0 1 unless (UNIVERSAL::isa($stmt, 'ODO::Statement') or $self->__is_pattern_key($stmt))
144 1 0 unless $self->__is_pattern_key($stmt) == 1
147 0 1 unless UNIVERSAL::isa($self->patterns->{$key}, 'ARRAY')
166 0 0 unless $self->__compare_pattern($p, $stmt)
182 0 0 if $destComponent
186 0 0 if UNIVERSAL::isa($stmt->$component, 'ODO::Node::Variable')
202 0 0 unless UNIVERSAL::isa($stmt->$comp, 'ODO::Node::Variable')
219 0 8 unless (UNIVERSAL::isa($stmt, 'ODO::Statement') or $self->__is_pattern_key($stmt))
227 5 3 unless $self->__is_pattern_key($stmt) == 1
230 2 6 unless UNIVERSAL::isa($self->patterns->{$key}, 'ARRAY')
247 0 3 unless (UNIVERSAL::isa($stmt, 'ODO::Statement') or $self->__is_pattern_key($stmt))
255 2 1 unless $self->__is_pattern_key($stmt) == 1
267 0 9 if $c eq '*'
269 9 0 if exists $self->known_var_map->{$c}
312 0 3 unless UNIVERSAL::isa($stmt->$comp, 'ODO::Node::Variable')
314 3 0 if exists $self->known_var_map->{$stmt->$comp->value} and $self->known_var_map->{$stmt->$comp->value} > 0
335 12 14 $pk =~ /^.+?-.+?-.+?$/ ? :
352 54 0 if UNIVERSAL::isa($stmt->$component, 'ODO::Node::Variable')
358 18 0 if $key =~ /-$/
380 1 0 if $s ne '*'
383 1 0 if $s ne '*'
386 1 0 if $o ne '*'
403 1 0 unless $self->__is_pattern_key($stmt) == 1
408 1 0 $s ne '*' ? :
410 1 0 $p ne '*' ? :
412 1 0 $o ne '*' ? :
416 1 0 $pattern =~ /$compare/ ? :
432 0 1 unless $self->__compare_pattern($p, $stmt)
444 0 1 unless $self->count_pattern_results($dest_stmt) > 0
463 1 2 if ($mapper->compare($s, $d))
472 1 1 unless $sourceMatch
481 1 1 if (exists $$destMatchMap{$d})