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
152 22 1 1 exists $self->{'limit'} and $self->{'total_distinct_count'} > 2 * $self->{'limit'}
172 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
187 30 2 54 $self->{'skiprex'} ne '' and $textl =~ /^$self->{'skiprex'}/
206 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'
257 4 1 2 $self->{'skiprex'} eq '' and $self->{'tokenrex'} eq ''
5 0 2 $self->{'skiprex'} eq '' and $self->{'tokenrex'} eq '' and $self->{'processtoken'} eq ''
289 0 0 2 exists $self->{'limit'} and $self->{'limit'} > 0
382 10 0 1 $out and not ref $out
397 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'
340 1 19 7 not exists $params{'orderby'} or $params{'orderby'} eq 'ngram'
408 1 19 6 not exists $params{'orderby'} or $params{'orderby'} eq 'ngram'