Condition Coverage

blib/lib/Config/Perl.pm
Criterion Covered Total %
condition 137 178 76.9


and 3 conditions

line !l l&&!r l&&r condition
227 2 101 44 ref $input eq 'SCALAR' and not $$input =~ /;\s*$/
251 0 9 286 @sc and $sc[-1]->isa('PPI::Token::Structure')
9 0 286 @sc and $sc[-1]->isa('PPI::Token::Structure') and $sc[-1]->content eq ';'
258 0 0 4 $el->isa('PPI::Statement::Compound') and @sc == 1
0 0 4 $el->isa('PPI::Statement::Compound') and @sc == 1 and $sc[0]->isa('PPI::Token::Label')
263 0 1 1 $el->type eq 'my' and $param{'outer'}
271 39 6 181 @sc == 3 || @sc == 4 and $sc[1]->isa('PPI::Token::Operator')
45 0 181 @sc == 3 || @sc == 4 and $sc[1]->isa('PPI::Token::Operator') and $sc[1]->content eq '='
38 0 7 @sc == 4 || @sc == 5 and $sc[2]->isa('PPI::Token::Operator')
38 1 6 @sc == 4 || @sc == 5 and $sc[2]->isa('PPI::Token::Operator') and $sc[2]->content eq '='
27 7 5 @sc == 2 and $sc[0]->isa('PPI::Token::Word')
34 0 5 @sc == 2 and $sc[0]->isa('PPI::Token::Word') and $sc[0]->literal eq 'do'
7 0 5 @sc == 2 and $sc[0]->isa('PPI::Token::Word') and $sc[0]->literal eq 'do' and $sc[1]->isa('PPI::Structure::Block')
1 0 7 @sc == 2 and $sc[0]->isa('PPI::Token::Symbol')
1 2 5 @sc == 2 and $sc[0]->isa('PPI::Token::Symbol') and $sc[1]->isa('PPI::Structure::Subscript')
2 0 1 @sc > 2 and $sc[0]->isa('PPI::Token::Word')
2 0 1 @sc > 2 and $sc[0]->isa('PPI::Token::Word') and $sc[0]->literal eq 'push'
302 32 140 104 $is_assign and $$self{'ctx'} ne 'scalar-void'
305 0 0 104 $param{'outer'} and not $el->snext_sibling
374 101 9 0 $param{'is_lhs'} and not $outerlist->isa('PPI::Structure::List')
379 0 110 0 $outerlist->schildren == 1 and $act_list->isa('PPI::Statement::Expression') || $act_list->class eq 'PPI::Statement'
388 110 100 85 $peek_next && $peek_next->isa('PPI::Token::Operator') && $peek_next->content eq '=>'
390 1 0 1 not $fat_comma_next and $el->isa('PPI::Token::Word')
1 0 1 not $fat_comma_next and $el->isa('PPI::Token::Word') and $el->literal eq 'undef'
399 197 53 30 $fat_comma_next and $el->isa('PPI::Token::Word')
250 1 29 $fat_comma_next and $el->isa('PPI::Token::Word') and $el->literal =~ /^\w+$/
406 245 3 1 $el->isa('PPI::Token::Word') and $el->literal eq 'do'
248 0 1 $el->isa('PPI::Token::Word') and $el->literal eq 'do' and $peek_next
3 0 1 $el->isa('PPI::Token::Word') and $el->literal eq 'do' and $peek_next and $peek_next->isa('PPI::Structure::Block')
415 274 7 13 $el->isa('PPI::Token::Symbol') and $peek_next
281 8 5 $el->isa('PPI::Token::Symbol') and $peek_next and $peek_next->isa('PPI::Structure::Subscript')
420 0 187 0 $el->isa('PPI::Token::Operator') and $el->content eq ',' || $el->content eq '=>'
434 66 7 1 $val->isa('PPI::Token::Word') and $val->literal eq 'undef'
66 3 4 $val->isa('PPI::Token::Word') and $val->literal =~ /^-\w+$/
45 0 3 $val->isa('PPI::Token::Word') and $val->literal eq 'do'
45 1 2 $val->isa('PPI::Token::Word') and $val->literal eq 'do' and $val->snext_sibling
1 0 2 $val->isa('PPI::Token::Word') and $val->literal eq 'do' and $val->snext_sibling and $val->snext_sibling->isa('PPI::Structure::Block')
485 14 242 18 $peek_next and $peek_next->isa('PPI::Structure::Subscript')
487 2 2 10 $sym->raw_type eq '$' and $sym->symbol_type eq '@'
4 0 10 $sym->raw_type eq '$' and $sym->symbol_type eq '@' and $peek_next->braces eq '[]'
2 0 2 $sym->raw_type eq '$' and $sym->symbol_type eq '%'
2 0 2 $sym->raw_type eq '$' and $sym->symbol_type eq '%' and $peek_next->braces eq '{}'
508 0 0 18 @sub_ch == 1 and $sub_ch[0]->isa('PPI::Statement::Expression')
514 11 2 2 $sub->braces eq '{}' and $subs[0]->isa('PPI::Token::Word')
571 1 1 9 exists $$self{'out'}{$var} and defined $$self{'out'}{$var}

or 2 conditions

line l !l condition
219 2 85 $@ || 'Unknown error'
229 8 139 'PPI::Document'->errstr || 'Unknown error'

or 3 conditions

line l !l&&r !l&&!r condition
241 7 144 0 $block->isa('PPI::Structure::Block') or $block->isa('PPI::Document')
261 62 2 1 $el->type eq 'our' or $el->type eq 'my'
263 62 0 2 $el->type eq 'our' or $el->type eq 'my' and $param{'outer'}
271 181 6 39 @sc == 3 || @sc == 4
6 1 38 @sc == 4 || @sc == 5
26 0 8 @sc == 1 or @sc == 2 and $sc[0]->isa('PPI::Token::Symbol') and $sc[1]->isa('PPI::Structure::Subscript')
317 187 63 0 $as->class eq 'PPI::Statement' or $as->class eq 'PPI::Statement::Variable'
322 0 1 249 $as->schildren < 3 or $as->schildren > 5
369 33 77 0 $outerlist->isa('PPI::Structure::List') or $outerlist->isa('PPI::Structure::Constructor')
379 44 66 0 $act_list->isa('PPI::Statement::Expression') || $act_list->class eq 'PPI::Statement'
420 103 84 0 $el->content eq ',' || $el->content eq '=>'
539 132 1 100 $q->isa('PPI::Token::Quote::Single') or $q->isa('PPI::Token::Quote::Literal')
98 2 0 $q->isa('PPI::Token::Quote::Double') or $q->isa('PPI::Token::Quote::Interpolate')