Condition Coverage

blib/lib/Text/Ngrams.pm
Criterion Covered Total %
condition 35 48 72.9


and 3 conditions

line !l l&&!r l&&r condition
149 22 1 1 exists $self->{'limit'} and $self->{'total_distinct_count'} > 2 * $self->{'limit'}
169 9 3 6 $self->{'skiprex'} eq '' and $self->{'tokenrex'} eq ''
12 0 6 $self->{'skiprex'} eq '' and $self->{'tokenrex'} eq '' and $self->{'processtoken'} eq ''
3 0 6 $self->{'skiprex'} eq '' and $self->{'tokenrex'} eq '' and $self->{'processtoken'} eq '' and $cont == 0
184 30 2 54 $self->{'skiprex'} ne '' and $textl =~ /^$self->{'skiprex'}/
203 0 1 0 defined $self->{'allow_iproc'} and $self->{'allow_iproc'}
0 0 1 defined $self->{'allow_iproc'} and $self->{'allow_iproc'} and ref $self->{'processtoken'} eq 'CODE'
253 4 1 2 $self->{'skiprex'} eq '' and $self->{'tokenrex'} eq ''
5 0 2 $self->{'skiprex'} eq '' and $self->{'tokenrex'} eq '' and $self->{'processtoken'} eq ''
285 0 0 2 exists $self->{'limit'} and $self->{'limit'} > 0
378 10 0 1 $out and not ref $out
393 25 1 4 $spartan and $n < $self->{'windowsize'}

or 3 conditions

line l !l&&r !l&&!r condition
25 0 12 0 ref $package || $package
35 3 0 9 not exists $params{'type'} or $params{'type'} eq 'character'
336 1 19 7 not exists $params{'orderby'} or $params{'orderby'} eq 'ngram'
404 1 19 6 not exists $params{'orderby'} or $params{'orderby'} eq 'ngram'