Condition Coverage

blib/lib/Perl/ToPerl6/Utils/PPI.pm
Criterion Covered Total %
condition 12 45 26.6


and 3 conditions

line !l l&&!r l&&r condition
192 3 6 27 $match->{'content'} and $elem->content ne $match->{'content'}
205 1 250 62 $elem and $elem->isa('PPI::Token::Word')
214 0 60 1 $elem and $elem->isa('PPI::Token::Operator')
223 0 0 0 $elem and $elem->isa('PPI::Statement')
232 0 248 0 $elem and $elem->isa('PPI::Statement::Compound')
239 0 15 0 $elem and $elem->isa('PPI::Token::QuoteLike::Words')
454 0 0 0 $first_element and $first_element->isa('PPI::Token::Word')
0 0 0 $first_element and $first_element->isa('PPI::Token::Word') and $first_element->content eq 'sub'
491 0 0 0 is_ppi_generic_statement($element) and $element->schild(0)->content =~ / \A Readonly \b /msx
493 0 0 0 $pragma = $element->pragma and $pragma eq 'constant'
523 0 0 0 $element and !is_ppi_simple_statement($element) || $element->parent && $element->parent->isa('PPI::Structure::List')

or 3 conditions

line l !l&&r !l&&!r condition
267 1 0 0 $element->isa('PPI::Token::Word') or $element->isa('PPI::Token::Number::Version')
1 0 0 $element->isa('PPI::Token::Word') or $element->isa('PPI::Token::Number::Version') or $element->isa('PPI::Token::Number::Float')
419 0 0 0 $element->isa('PPI::Token::Number') || $element->isa('PPI::Token::Quote::Literal') || $element->isa('PPI::Token::Quote::Single') || $element->isa('PPI::Token::QuoteLike::Words') || ($element->isa('PPI::Token::Quote::Double') || $element->isa('PPI::Token::Quote::Interpolate')) && !($element->string =~ / (?: \A | [^\\] ) (?: \\\\)* [\$\@] /msx)
523 0 0 0 !is_ppi_simple_statement($element) || $element->parent && $element->parent->isa('PPI::Structure::List')