Condition Coverage

blib/lib/Config/Perl.pm
Criterion Covered Total %
condition 111 151 73.5


and 3 conditions

line !l l&&!r l&&r condition
256 3 132 40 ref $input eq 'SCALAR' and not $$input =~ /;\s*$/
281 0 0 7 $block->isa('PPI::Token::Word') and $block->literal eq 'do'
291 502 0 4 $stmt->isa('PPI::Statement::Compound') and $stmt->schildren == 1
502 0 4 $stmt->isa('PPI::Statement::Compound') and $stmt->schildren == 1 and $stmt->schild(0)->isa('PPI::Token::Label')
298 0 436 0 $self->{'ptr'} and !$self->{'ptr'}->isa('PPI::Token::Structure') || !$self->{'ptr'}->content eq ';' || $self->{'ptr'}->snext_sibling
306 10 50 0 ref $rv2 and $self->{'ptr'}
5 45 0 ref $rv2 and $self->{'ptr'} and !$self->{'ptr'}->isa('PPI::Token::Structure') || !$self->{'ptr'}->content eq ';' || $self->{'ptr'}->snext_sibling
337 0 433 69 $as and $as->class eq 'PPI::Statement::Variable'
342 0 2 0 $as->type eq 'my' and $param{'outer'}
372 4 0 437 $self->{'ptr'}->isa('PPI::Token::Operator') and $self->{'ptr'}->content eq '='
425 167 9 0 $param{'is_lhs'} and not $outerlist->isa('PPI::Structure::List')
433 0 152 0 $outerlist->schildren == 1 and $act_list->isa('PPI::Statement::Expression') || $act_list->class eq 'PPI::Statement'
443 152 150 109 $peek_next && $peek_next->isa('PPI::Token::Operator') && $peek_next->content eq '=>'
445 1 0 1 not $fat_comma_next and $self->{'ptr'}->isa('PPI::Token::Word')
1 0 1 not $fat_comma_next and $self->{'ptr'}->isa('PPI::Token::Word') and $self->{'ptr'}->literal eq 'undef'
461 289 74 33 $fat_comma_next and $self->{'ptr'}->isa('PPI::Token::Word')
363 1 32 $fat_comma_next and $self->{'ptr'}->isa('PPI::Token::Word') and $self->{'ptr'}->literal =~ /^\w+$/
480 0 261 0 $self->{'ptr'}->isa('PPI::Token::Operator') and $self->{'ptr'}->content eq ',' || $self->{'ptr'}->content eq '=>'
490 8 140 3 not $param{'is_lhs'} and $self->{'ctx'} =~ /^scalar\b/
504 0 0 500 $sym and $sym->isa('PPI::Token::Symbol')
509 11 464 25 $temp_ptr and $temp_ptr->isa('PPI::Structure::Subscript')
513 4 3 11 $sym->raw_type eq '$' and $sym->symbol_type eq '@'
7 0 11 $sym->raw_type eq '$' and $sym->symbol_type eq '@' and $ss->{'braces'} eq '[]'
4 0 3 $sym->raw_type eq '$' and $sym->symbol_type eq '%'
4 0 3 $sym->raw_type eq '$' and $sym->symbol_type eq '%' and $ss->{'braces'} eq '{}'
529 14 84 468 $temp_ptr and $temp_ptr->isa('PPI::Token::Operator')
98 439 29 $temp_ptr and $temp_ptr->isa('PPI::Token::Operator') and $temp_ptr->content eq '->'
14 475 48 $temp_ptr and $temp_ptr->isa('PPI::Structure::Subscript')
569 0 0 73 @sub_ch == 1 and $sub_ch[0]->isa('PPI::Statement::Expression')
576 40 19 8 $subscr->braces eq '{}' and $subs[0]->isa('PPI::Token::Word')
597 575 13 1 $val->isa('PPI::Token::Word') and $val->literal eq 'undef'
575 9 4 $val->isa('PPI::Token::Word') and $val->literal =~ /^-\w+$/
65 1 8 $val->isa('PPI::Token::Word') and $val->literal eq 'do'
66 0 8 $val->isa('PPI::Token::Word') and $val->literal eq 'do' and $val->snext_sibling
1 1 7 $val->isa('PPI::Token::Word') and $val->literal eq 'do' and $val->snext_sibling and $val->snext_sibling->isa('PPI::Structure::Block')
708 1 1 10 exists $self->{'out'}{$var} and defined $self->{'out'}{$var}

or 2 conditions

line l !l condition
218 93 1 0 $KNOWN_ARGS_NEW{$_} or croak("unknown argument $_")
248 2 94 $@ || 'Unknown error'
258 18 157 'PPI::Document'->errstr || 'Unknown error'

or 3 conditions

line l !l&&r !l&&!r condition
220 0 0 167 $args{'debug'} || $DEBUG
298 1 0 435 !$self->{'ptr'}->isa('PPI::Token::Structure') || !$self->{'ptr'}->content eq ';' || $self->{'ptr'}->snext_sibling
306 2 0 43 !$self->{'ptr'}->isa('PPI::Token::Structure') || !$self->{'ptr'}->content eq ';' || $self->{'ptr'}->snext_sibling
339 66 2 1 $as->type eq 'our' or $as->type eq 'my'
342 66 0 2 $as->type eq 'our' or $as->type eq 'my' and $param{'outer'}
347 0 0 433 not $as or $as->class ne 'PPI::Statement'
0 46 387 not $as or $as->class ne 'PPI::Statement' or $as->schildren < 3
420 48 128 0 $outerlist->isa('PPI::Structure::List') or $outerlist->isa('PPI::Structure::Constructor')
433 53 99 0 $act_list->isa('PPI::Statement::Expression') || $act_list->class eq 'PPI::Statement'
480 153 108 0 $self->{'ptr'}->content eq ',' || $self->{'ptr'}->content eq '=>'
617 203 1 130 $val->isa('PPI::Token::Quote::Single') or $val->isa('PPI::Token::Quote::Literal')
128 2 0 $val->isa('PPI::Token::Quote::Double') or $val->isa('PPI::Token::Quote::Interpolate')