Condition Coverage

blib/lib/PPI/Tokenizer.pm
Criterion Covered Total %
condition 36 47 76.6


and 3 conditions

line !l l&&!r l&&r condition
292 379567 13486 0 $self->{'token_eof'} and $self->{'token_cursor'} > scalar @{$self->{'tokens'};}
536 0 27938 311 ref $self->{'source'} eq "ARRAY" and not @{$self->{'source'};}
555 2310 14265 24260 ref $self->{'source'} eq "ARRAY" and @{$self->{'source'};}
578 0 0 453121 defined $self->{'line_cursor'} and defined $self->{'line_length'}
805 192 3 204 (!$prev->isa('PPI::Token::Operator') || $X_CAN_FOLLOW_OPERATOR{$prev}) && (!$prev->isa('PPI::Token::Structure') || $X_CAN_FOLLOW_STRUCTURE{$prev}) && !$prev->isa('PPI::Token::Label')
835 21579 2325 227 $content eq "{" and $t->{'line'} =~ /\G\s*\}/cg
845 5603 0 28 defined $word and $word =~ /^v[0-9]+$/
5603 26 2 defined $word and $word =~ /^v[0-9]+$/ and $content eq 'use' || $content eq 'no'
847 4 2 230 not $USUALLY_FORCES{$prevprev->content} and $prevprev->content ne "->"
869 0 7216 15558 $tokens[-1] and not $tokens[-1]->parent

or 2 conditions

line l !l condition
729 168509 0 shift() || 1

or 3 conditions

line l !l&&r !l&&!r condition
156 0 16891 0 ref $_[0] || $_[0]
845 8 2 18 $content eq 'use' || $content eq 'no'
869 8512 15558 7216 not @tokens or $tokens[-1] and not $tokens[-1]->parent
876 1289 1 0 $t->_document || $t->_document('PPI::Document'->new)
7222 1290 0 $closest_parented_token ||= $t->_document || $t->_document('PPI::Document'->new)