Condition Coverage

blib/lib/YAPE/Regex.pm
Criterion Covered Total %
condition 43 102 42.1


and 3 conditions

line !l l&&!r l&&r condition
79 0 0 0 require $file and $class->import
155 12 89 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'}
101 0 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'} and $$self{'CONTENT'} =~ s/^(\s+)//
172 12 89 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'}
101 0 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'} and $$self{'CONTENT'} =~ s/^$pat{'Xcomment'}//
239 0 0 0 $quant and $quant ne '?'
324 12 81 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'}
93 0 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'} and $$self{'CONTENT'} =~ s/^$pat{'nws'}//
332 0 0 0 length $match > 1 and $$self{'CONTENT'} =~ /^(?:$pat{'Pcomment'}|$pat{'Xcomment'}|\s+)*$pat{'quant'}/
350 10 16 0 length $match > 1 and $$self{'CONTENT'} =~ /^$pat{'quant'}/
365 0 3 1 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]->type eq 'cond'
3 1 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]->type eq 'cond' and $$self{'TREE_STACK'}[-1]{'OPTS'} == 2
374 0 3 1 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]->type eq 'cond'
519 0 1 30 $$self{'DEPTH'}-- and $$self{'CONTENT'} =~ s/^$pat{'Pclose'}//
530 0 0 0 $quant and $quant ne '?'
560 10 14 6 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]->type eq 'cond'
24 0 6 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]->type eq 'cond' and $$self{'TREE_STACK'}[-1]{'OPTS'} == 1
598 0 57 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'}
57 0 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'} and $$self{'CONTENT'} =~ s/^($pat{'Xcomment'}?\s*)?$pat{'quant'}//
605 5 1 1 $quant =~ /^\{(\d+),(\d+)\}/ and $1 > $2
615 0 63 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'}
63 0 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'} and $$self{'CONTENT'} =~ s/^(\s+)//
619 0 63 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'}
63 0 0 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'} and $$self{'CONTENT'} =~ s/^($pat{'Xcomment'}?\s*)?$pat{'ngreed'}//
653 30 0 0 defined $posix and not $posix =~ /$valid_POSIX/
674 0 0 0 defined $posix and not $posix =~ /$valid_POSIX/

or 2 conditions

line l !l condition
143 1 0 $_[1] || 30
461 1 12 $add || ''
12 1 $sub || ''

or 3 conditions

line l !l&&r !l&&!r condition
93 0 0 12 not defined $regex or length $regex == 0
239 0 0 0 $quant eq '*' or $quant eq '+'
530 0 0 0 $quant eq '*' or $quant eq '+'
598 7 0 57 $$self{'CONTENT'} =~ s/^($pat{'Pcomment'})?$pat{'quant'}// or @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'} and $$self{'CONTENT'} =~ s/^($pat{'Xcomment'}?\s*)?$pat{'quant'}//
619 0 0 63 @{$$self{'TREE_STACK'};} and $$self{'TREE_STACK'}[-1]{'MODE'}{'x'} and $$self{'CONTENT'} =~ s/^($pat{'Xcomment'}?\s*)?$pat{'ngreed'}// or $$self{'CONTENT'} =~ s/^($pat{'Pcomment'})?$pat{'ngreed'}//
680 0 0 0 $a == -1 or $b == -1