Condition Coverage

blib/lib/Hailo/Tokenizer/Words.pm
Criterion Covered Total %
condition 33 36 91.6


and 3 conditions

line !l l&&!r l&&r condition
96 5006 23241 34731 length $input and $input =~ /^$NONSPACE/
103 6133 28590 8 not $got_word and $ascii =~ / ^ $Hailo::Tokenizer::Words::RE{'URI'} /ox
6133 28277 313 not $got_word and $input =~ s/ ^ (?<word> $CASED_WORD )//ox
123 22606 4187 21 not @tokens and $input =~ s/ ^ (?<word>$WORD_APOST) //ox
26669 124 0 $last_char =~ / ^ $APOSTROPHE $ /ox and $input =~ s/ ^ (?<word>$WORD_APOST) (?<! $last_char ) //ox
133 1818 50 24946 $word ne uc $word and not $word =~ /$MIXED_CASE/
1868 23 24923 $word ne uc $word and not $word =~ /$MIXED_CASE/ and not $word =~ /$UPPER_NONW/
179 1299 210 12417 $pos != $#{$tokens;} and $spacing != $self->{'_spacing_prefix'}
1509 164 12253 $pos != $#{$tokens;} and $spacing != $self->{'_spacing_prefix'} and $spacing != $self->{'_spacing_infix'}
0 9935 2318 $pos < $#{$tokens;} && ($$tokens[$pos + 1][0] == $self->{'_spacing_postfix'} || $$tokens[$pos + 1][0] == $self->{'_spacing_infix'})
374 2318 9935 $pos != $#{$tokens;} and $spacing != $self->{'_spacing_prefix'} and $spacing != $self->{'_spacing_infix'} and not $pos < $#{$tokens;} && ($$tokens[$pos + 1][0] == $self->{'_spacing_postfix'} || $$tokens[$pos + 1][0] == $self->{'_spacing_infix'})

or 3 conditions

line l !l&&r !l&&!r condition
123 21 0 26793 not @tokens and $input =~ s/ ^ (?<word>$WORD_APOST) //ox or $last_char =~ / ^ $APOSTROPHE $ /ox and $input =~ s/ ^ (?<word>$WORD_APOST) (?<! $last_char ) //ox