Condition Coverage

blib/lib/macro.pm
Criterion Covered Total %
condition 47 57 82.4


and 3 conditions

line !l l&&!r l&&r condition
58 1 45 0 defined $name and defined $macro
118 378 31 162 $it->isa('PPI::Token::Whitespace') and $it->content eq "\n"
121 369 0 40 $it->isa('PPI::Token::Structure') and $it->content eq ';'
369 1 39 $it->isa('PPI::Token::Structure') and $it->content eq ';' and not $it->parent->snext_sibling
131 292 0 58 $it->isa('PPI::Statement::Include') and $it->type eq 'use'
142 1 4 33 @stmt == 1 and ref $stmt[0] eq 'PPI::Statement'
5 2 31 @stmt == 1 and ref $stmt[0] eq 'PPI::Statement' and not $stmt[0]->find_any(\&_want_not_simple)
159 93 1 2 $it->isa('PPI::Token::Word') && $not_simple{$it->content}
243 2663 458 64 $elem->isa('PPI::Token::Word') and exists $$macro{$elem->content}
247 9 49 6 $sibling and $sibling->isa('PPI::Token::Operator')
58 5 1 $sibling and $sibling->isa('PPI::Token::Operator') and $sibling->content eq '->'
252 2 2 59 $sibling && $sibling->isa('PPI::Structure::List')
284 56 33 0 $it->isa('PPI::Token::Operator') and $it->content eq ',' || $it->content eq '=>'
323 817 0 4 $elem->isa('PPI::Token::ArrayIndex') and $elem->content eq '$#_'
329 0 0 36 $elem->content eq '$_' && ($elem = $elem->snext_sibling) && $elem->isa('PPI::Structure::Subscript') && ($elem = $elem->schild(0)) && $elem->isa('PPI::Statement::Expression') && ($elem = $elem->schild(0)) && $elem->isa('PPI::Token::Number')

or 3 conditions

line l !l&&r !l&&!r condition
62 1 1 42 &Scalar::Util::tainted($name) or &Scalar::Util::tainted($macro)
132 0 58 0 $it->version || $rm_module{$it->module}
284 30 1 2 $it->content eq ',' || $it->content eq '=>'
366 35 1 0 $$args[_param_idx($param)] || _list('PPI::Token::Word'->new('undef'))