Condition Coverage

blib/lib/Data/Match.pm
Criterion Covered Total %
condition 59 100 59.0


and 3 conditions

line !l l&&!r l&&r condition
411 0 95 21 not $$self{'disable_patterns'} and UNIVERSAL::isa($$p[$$p_i], 'Data::Match::Pattern::REST')
415 0 8 13 $match &&= $$p[$$p_i]->_match_REST_ARRAY($x, $p, $self, $x_i, $p_i)
420 9 5 81 $$x_i < @$x && $self->_match($$x[$$x_i], $$p[$$p_i])
432 0 10 28 $$p_i == @$p && $$x_i == @$x
0 10 28 $match &&= $$p_i == @$p && $$x_i == @$x
478 0 29 0 not $$self{'disable_patterns'} and $k =~ /^Data::Match::Pattern::ANY=/ || UNIVERSAL::isa($k, 'Data::Match::Pattern::ANY')
1 14 3 not $$self{'disable_patterns'} || $rest_pat and UNIVERSAL::isa($$p{$k}, 'Data::Match::Pattern::REST')
497 0 8 3 $match &&= $matches
515 6 1 8 exists $$x{$k} && $self->_match($$x{$k}, $$p{$k})
0 7 8 $match &&= exists $$x{$k} && $self->_match($$x{$k}, $$p{$k})
525 0 0 3 $match &&= $rest_pat->_match_REST_HASH($x, $p, $self, [grep((!exists($matched_keys{$_})), keys %$x)])
531 0 1 5 $match &&= scalar values %$p == scalar values %$x
606 0 185 1338 not $$self{'disable_patterns'} and UNIVERSAL::isa($p, 'Data::Match::Pattern')
619 27 12 42 UNIVERSAL::isa($x, 'ARRAY') and UNIVERSAL::isa($p, 'ARRAY')
12 0 27 UNIVERSAL::isa($x, 'HASH') and UNIVERSAL::isa($p, 'HASH')
12 0 0 UNIVERSAL::isa($x, 'SCALAR') and UNIVERSAL::isa($p, 'SCALAR')
626 0 0 0 $match &&= $self->_match($_[0], $p)
1474 0 3 10 ref $x && $self->match_and($slice, $matchobj)
1578 7 0 2 $match_sub and $match_rest
1581 1 0 1 defined $$self[1] and $count >= $$self[1]
1906 0 1 8 0 <= $i && $i < FETCHSIZE($_[0])
1969 0 0 0 0 <= $_[1] and $_[1] < FETCHSIZE($_[0])
1979 0 0 0 0 <= $_[1] and $_[1] < FETCHSIZE($_[0])

or 2 conditions

line l !l condition
644 12 0 ref $x or '*'
694 0 118 $$self{'depth'} ||= 0
695 0 118 $$self{'visiting'} ||= {}
696 0 118 $$self{'path'} ||= []
699 0 118 $$self{'_COLLECT'} ||= 'COLLECT'
700 0 118 $$self{'_BIND'} ||= 'BIND'
949 0 0 $Data::DRef::Separator || '.'
1243 57 41 $$matchobj{$$matchobj{'_COLLECT'}}{$$self[0]} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
478 11 0 18 $k =~ /^Data::Match::Pattern::ANY=/ || UNIVERSAL::isa($k, 'Data::Match::Pattern::ANY')
0 1 17 $$self{'disable_patterns'} || $rest_pat
697 0 115 3 $$self{'root'} ||= $x
698 0 116 2 $$self{'pattern'} ||= $p
1830 160 0 107 $$matchobj{'find'}{ref $x} || $$matchobj{'visit'}{ref $x}