Condition Coverage

blib/lib/Hash/Weighted/Categorize/Parser.pm
Criterion Covered Total %
condition 6 189 3.1


and 3 conditions

line !l l&&!r l&&r condition
2072 0 0 4 $self->input and defined ${$self->input;}
0 0 0 $newaction and reftype $newaction eq 'CODE'
0 0 0 $bypass and @children == 1
0 0 0 $childisterminal and not $finalclass->isa($PREFIX . 'TERMINAL')
0 0 0 exists $_[$dotpos] and UNIVERSAL::isa($_[$dotpos], 'CODE')
0 0 0 reftype $state and reftype $state eq 'ARRAY'
0 0 0 $t ne $spec and $t ne ''
0 0 0 $$self{'LEX'} and reftype($$self{'LEX'}) eq 'CODE'
0 0 0 $index < 0 and -$index <= @{$$self{'STACK'};}
0 0 0 exists $$self{'STATES'}[$conflictstate]{'ACTIONS'} and $$self{'STATES'}[$conflictstate]{'ACTIONS'}{$_} >= 0
0 0 0 exists $$self{'STATES'}[$conflictstate]{'ACTIONS'} and $$self{'STATES'}[$conflictstate]{'ACTIONS'}{$_} >= 0
0 0 0 $newaction{$n} and reftype($newaction{$n}) eq 'CODE'
0 0 0 blessed $attr and $attr->can('str')
0 0 0 blessed $attr and $attr->can('line')
0 4 218 defined $$token and $$token ne ''
0 0 0 @$stack and !(exists $$states[$$stack[-1][0]]{'ACTIONS'} && exists $$states[$$stack[-1][0]]{'ACTIONS'}{'error'}) || $$states[$$stack[-1][0]]{'ACTIONS'}{'error'} <= 0
0 0 0 not $file and @ARGV
0 0 0 $tree and blessed $tree
0 0 0 $tree and blessed $tree and $tree->isa('Parse::Eyapp::Node')
0 0 0 $tree and ref $tree
0 0 0 $yaml and ref $tree
0 0 0 $dot and blessed $tree
0 0 0 defined $extension and $tree->can($extension)
0 0 0 not defined $sfile and defined $file
0 1 0 exists $$self{'VERSION'} and $$self{'VERSION'} < $COMPATIBLE
0 0 0 $fn and -r $fn
3116 0 0 0 UNIVERSAL::can($self, 'children') and @{$$self{'children'};}
0 0 0 defined $$self{'children'}[$i] and UNIVERSAL::isa($$self{'children'}[$i], 'CODE')
0 0 0 ref $node and UNIVERSAL::can($node, 'children')
0 0 0 $INDENT >= 0 and $root->can('info')
0 0 0 exists $$tree1{$_} and not exists $$tree2{$_}
0 0 0 exists $$tree2{$_} and not exists $$tree1{$_}
0 0 0 defined $$tree1{$_} and not defined $$tree2{$_}
0 0 0 defined $$tree2{$_} and not defined $$tree1{$_}
0 0 0 defined $class and $class =~ /^[a-zA-Z_][\w:]*$/
0 0 0 defined $handler and UNIVERSAL::isa($handler, 'CODE')
0 0 0 $INDENT >= 0 and UNIVERSAL::can($self, 'footnote')
0 0 0 $INDENT >= 0 and UNIVERSAL::can($self, 'info')
0 0 0 $INDENT >= 0 and $res
0 0 0 $INDENT > 1 and $class =~ tr/\n// > $LINESEP
0 0 0 ref $match eq 'CODE' and @_ > 0
0 0 0 UNIVERSAL::can($self, 'children') and $self->children > 0
0 0 0 $child =~ /\d+/ and $child < $numchildren
0 0 0 /\d+/ and $_ < $t->children
0 0 0 defined $handler and UNIVERSAL::isa($handler, 'CODE')
0 0 0 UNIVERSAL::can($self, 'children') and $self->children > 0
0 0 0 $child =~ /\d+/ and $child < $numchildren
0 0 0 UNIVERSAL::can($self, 'children') and $self->children > 0
0 0 0 $child =~ /\d+/ and $child < $numchildren
0 0 0 UNIVERSAL::can($self, 'children') and @{$$self{'children'};}
0 0 0 defined $DELIMITER and exists $match_del{$DELIMITER}
3420 0 0 0 $mytasks and my $job = shift @{$mytasks;}
0 0 0 ref $node and UNIVERSAL::can($node, 'children')

or 2 conditions

line l !l condition
2072 0 0 shift() || 1
0 0 shift() || 0
0 0 $parser->YYPrefix || ''
0 1 $self->YYPrefix || ''
1 0 shift @classes || (return)
3116 0 0 CORE::shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
2072 0 0 0 !defined($_) || $_ eq '' || defined pos $_ && pos $_ >= length $_
0 0 0 shift() || $parser
0 0 0 shift() || $self->YYRuleindex
0 0 0 shift() || $$self{'CURRENT_RULE'}
0 0 0 !(exists $$states[$$stack[-1][0]]{'ACTIONS'} && exists $$states[$$stack[-1][0]]{'ACTIONS'}{'error'}) || $$states[$$stack[-1][0]]{'ACTIONS'}{'error'} <= 0
3116 0 0 0 not defined $_ or &$match($_)