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
87 34 0 0 $args{'dispatch'} and not ref $args{'dispatch'} eq 'HASH'
90 34 0 0 $args{'config'} and not ref $args{'config'} eq 'HASH'
185 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])
258 8 3 0 ref $elt eq 'ARRAY' and not scalar @$elt
6 4 1 ref $elt eq 'HASH' and not scalar %$elt
265 16 0 4 &$is_op($expr->[0]) and not &$is_op($expr->[0], 'infix_distributable')
286 3 0 6 $arg_of and &any(sub { &$is_op($arg_of, $_); } , 'function', 'infix_listarg', 'predicate', 'reduce')
305 52 5 38 ref $expr->{$k} and ref $expr->{$k} ne 'SCALAR'
341 4 0 0 not ref $expr->{$k} and $lhs
357 0 0 2 ref $expr->{$k} eq 'ARRAY' and @{$expr->{$k};} == 3
364 0 0 2 ref $expr->{$k} eq 'ARRAY' and @{$expr->{$k};} == 5
446 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'
460 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'
470 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'
482 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'
494 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'
503 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'
515 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'
527 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'
544 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'
563 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
95 0 34 $args{'dispatch'} || \%dispatch
0 34 $args{'config'} || \%config

or 3 conditions

line l !l&&r !l&&!r condition
126 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])
177 0 8 536 not defined $_[0] or ref $_[0]
200 110 1 231 $_ eq '' or &blessed($expr)
258 0 2 9 ref $elt eq 'ARRAY' and not scalar @$elt or ref $elt eq 'HASH' and not scalar %$elt
391 3 0 43 &$is_op($k, 'prefix') or &$is_op($k, 'function')
418 188 1 248 not ref $args or &blessed($args)