Condition Coverage

blib/lib/Neo4j/Cypher/Abstract/Peeler.pm
Criterion Covered Total %
condition 67 154 43.5


and 3 conditions

line !l l&&!r l&&r condition
81 34 0 0 $args{'dispatch'} and not ref $args{'dispatch'} eq 'HASH'
84 34 0 0 $args{'config'} and not ref $args{'config'} eq 'HASH'
179 145 5 0 not $_[0] =~ /$self->{'config'}{'safe_identifier'}/ and $_[0] =~ /^-|[[:punct:]]/
150 0 0 not $_[0] =~ /$self->{'config'}{'safe_identifier'}/ and $_[0] =~ /^-|[[:punct:]]/ and not &looks_like_number($_[0])
252 8 3 0 ref $elt eq 'ARRAY' and not scalar @$elt
6 4 1 ref $elt eq 'HASH' and not scalar %$elt
259 16 0 4 &$is_op($expr->[0]) and not &$is_op($expr->[0], 'infix_distributable')
280 3 0 6 $arg_of and &any(sub { &$is_op($arg_of, $_); } , 'function', 'infix_listarg', 'predicate', 'reduce')
299 52 5 38 ref $expr->{$k} and ref $expr->{$k} ne 'SCALAR'
335 4 0 0 not ref $expr->{$k} and $lhs
351 0 0 2 ref $expr->{$k} eq 'ARRAY' and @{$expr->{$k};} == 3
358 0 0 2 ref $expr->{$k} eq 'ARRAY' and @{$expr->{$k};} == 5
440 0 0 76 $op and $args
0 0 76 $op and $args and not ref $op
0 0 76 $op and $args and not ref $op and ref $args eq 'ARRAY'
454 0 0 35 $op and $args
0 0 35 $op and $args and not ref $op
0 0 35 $op and $args and not ref $op and ref $args eq 'ARRAY'
464 0 0 12 $op and $args
0 0 12 $op and $args and not ref $op
0 0 12 $op and $args and not ref $op and ref $args eq 'ARRAY'
476 0 0 6 $op and $args
0 0 6 $op and $args and not ref $op
0 0 6 $op and $args and not ref $op and ref $args eq 'ARRAY'
488 0 0 6 $op and $args
0 0 6 $op and $args and not ref $op
0 0 6 $op and $args and not ref $op and ref $args eq 'ARRAY'
497 0 0 2 $op and $args
0 0 2 $op and $args and not ref $op
0 0 2 $op and $args and not ref $op and ref $args eq 'ARRAY'
509 0 0 0 $op and $args
0 0 0 $op and $args and not ref $op
0 0 0 $op and $args and not ref $op and ref $args eq 'ARRAY'
521 0 0 2 $op and $args
0 0 2 $op and $args and not ref $op
0 0 2 $op and $args and not ref $op and ref $args eq 'ARRAY'
538 0 0 81 $op and $args
0 0 81 $op and $args and not ref $op
0 0 81 $op and $args and not ref $op and ref $args eq 'ARRAY'
557 0 0 5 $op and $args
0 0 5 $op and $args and not ref $op
0 0 5 $op and $args and not ref $op and ref $args eq 'ARRAY'

or 2 conditions

line l !l condition
89 0 34 $args{'dispatch'} || \%dispatch
0 34 $args{'config'} || \%config

or 3 conditions

line l !l&&r !l&&!r condition
120 68 0 99 &looks_like_number($arg) or $arg =~ /^\s*$q(.*)$q\s*$/
68 0 99 &looks_like_number($arg) or $arg =~ /^\s*$q(.*)$q\s*$/ or $arg =~ /$_[0]{'config'}{'parameter_sigil'}/
0 2 97 &looks_like_number($arg) or $arg =~ /^\s*$q(.*)$q\s*$/ or $arg =~ /$_[0]{'config'}{'parameter_sigil'}/ or &blessed($_[1])
171 0 8 536 not defined $_[0] or ref $_[0]
194 110 1 231 $_ eq '' or &blessed($expr)
252 0 2 9 ref $elt eq 'ARRAY' and not scalar @$elt or ref $elt eq 'HASH' and not scalar %$elt
385 3 0 43 &$is_op($k, 'prefix') or &$is_op($k, 'function')
412 188 1 248 not ref $args or &blessed($args)