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
250 2 108 44 ref $input eq 'SCALAR' and not $$input =~ /;\s*$/
275 0 0 7 $block->isa('PPI::Token::Word') and $block->literal eq 'do'
285 355 0 4 $stmt->isa('PPI::Statement::Compound') and $stmt->schildren == 1
355 0 4 $stmt->isa('PPI::Statement::Compound') and $stmt->schildren == 1 and $stmt->schild(0)->isa('PPI::Token::Label')
292 0 309 0 $self->{'ptr'} and !$self->{'ptr'}->isa('PPI::Token::Structure') || !$self->{'ptr'}->content eq ';' || $self->{'ptr'}->snext_sibling
300 10 30 0 ref $rv2 and $self->{'ptr'}
5 25 0 ref $rv2 and $self->{'ptr'} and !$self->{'ptr'}->isa('PPI::Token::Structure') || !$self->{'ptr'}->content eq ';' || $self->{'ptr'}->snext_sibling
331 0 286 69 $as and $as->class eq 'PPI::Statement::Variable'
336 0 2 0 $as->type eq 'my' and $param{'outer'}
366 4 0 310 $self->{'ptr'}->isa('PPI::Token::Operator') and $self->{'ptr'}->content eq '='
419 138 9 0 $param{'is_lhs'} and not $outerlist->isa('PPI::Structure::List')
427 0 127 0 $outerlist->schildren == 1 and $act_list->isa('PPI::Statement::Expression') || $act_list->class eq 'PPI::Statement'
437 127 133 93 $peek_next && $peek_next->isa('PPI::Token::Operator') && $peek_next->content eq '=>'
439 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'
455 247 61 30 $fat_comma_next and $self->{'ptr'}->isa('PPI::Token::Word')
308 1 29 $fat_comma_next and $self->{'ptr'}->isa('PPI::Token::Word') and $self->{'ptr'}->literal =~ /^\w+$/
474 0 228 0 $self->{'ptr'}->isa('PPI::Token::Operator') and $self->{'ptr'}->content eq ',' || $self->{'ptr'}->content eq '=>'
484 8 115 3 not $param{'is_lhs'} and $self->{'ctx'} =~ /^scalar\b/
498 0 0 367 $sym and $sym->isa('PPI::Token::Symbol')
503 11 331 25 $temp_ptr and $temp_ptr->isa('PPI::Structure::Subscript')
507 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 '{}'
523 14 74 337 $temp_ptr and $temp_ptr->isa('PPI::Token::Operator')
88 312 25 $temp_ptr and $temp_ptr->isa('PPI::Token::Operator') and $temp_ptr->content eq '->'
14 342 44 $temp_ptr and $temp_ptr->isa('PPI::Structure::Subscript')
563 0 0 69 @sub_ch == 1 and $sub_ch[0]->isa('PPI::Statement::Expression')
570 36 19 8 $subscr->braces eq '{}' and $subs[0]->isa('PPI::Token::Word')
591 474 13 1 $val->isa('PPI::Token::Word') and $val->literal eq 'undef'
474 9 4 $val->isa('PPI::Token::Word') and $val->literal =~ /^-\w+$/
64 1 8 $val->isa('PPI::Token::Word') and $val->literal eq 'do'
65 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')
702 1 1 10 exists $self->{'out'}{$var} and defined $self->{'out'}{$var}

or 2 conditions

line l !l condition
212 93 1 0 $KNOWN_ARGS_NEW{$_} or croak("unknown argument $_")
242 2 94 $@ || 'Unknown error'
252 13 141 'PPI::Document'->errstr || 'Unknown error'

or 3 conditions

line l !l&&r !l&&!r condition
214 0 0 146 $args{'debug'} || $DEBUG
292 1 0 308 !$self->{'ptr'}->isa('PPI::Token::Structure') || !$self->{'ptr'}->content eq ';' || $self->{'ptr'}->snext_sibling
300 2 0 23 !$self->{'ptr'}->isa('PPI::Token::Structure') || !$self->{'ptr'}->content eq ';' || $self->{'ptr'}->snext_sibling
333 66 2 1 $as->type eq 'our' or $as->type eq 'my'
336 66 0 2 $as->type eq 'our' or $as->type eq 'my' and $param{'outer'}
341 0 0 286 not $as or $as->class ne 'PPI::Statement'
0 26 260 not $as or $as->class ne 'PPI::Statement' or $as->schildren < 3
414 47 100 0 $outerlist->isa('PPI::Structure::List') or $outerlist->isa('PPI::Structure::Constructor')
427 49 78 0 $act_list->isa('PPI::Statement::Expression') || $act_list->class eq 'PPI::Statement'
474 136 92 0 $self->{'ptr'}->content eq ',' || $self->{'ptr'}->content eq '=>'
611 161 1 106 $val->isa('PPI::Token::Quote::Single') or $val->isa('PPI::Token::Quote::Literal')
104 2 0 $val->isa('PPI::Token::Quote::Double') or $val->isa('PPI::Token::Quote::Interpolate')