Condition Coverage

blib/lib/Text/Util/Chinese.pm
Criterion Covered Total %
condition 27 31 87.1


and 3 conditions

line !l l&&!r l&&r condition
30 1401 2 692 not @phrases and defined(my $text = &$input_iter())
43 770 3 692 not @sentences and defined(my $text = &$input_iter())
73 2 0 12 length $phrase >= $len * 2 and $phrase =~ /\A($re) .* ($re)\z/x
79 0 9 15 not $extracted{$x} and $stats{'prefix'}{$x}
9 10 5 not $extracted{$x} and $stats{'prefix'}{$x} and $stats{'suffix'}{$x}
10 1 4 not $extracted{$x} and $stats{'prefix'}{$x} and $stats{'suffix'}{$x} and $stats{'prefix'}{$x} > $threshold
11 3 1 not $extracted{$x} and $stats{'prefix'}{$x} and $stats{'suffix'}{$x} and $stats{'prefix'}{$x} > $threshold and $stats{'suffix'}{$x} > $threshold
142 146 1 1 $threshold <= keys %{$lcontext{$x};} and $threshold <= keys %{$rcontext{$x};}

or 2 conditions

line l !l condition
62 1 0 $opts->{'threshold'} || 9
63 0 1 $opts->{'lengths'} || [2, 3]

or 3 conditions

line l !l&&r !l&&!r condition
32 686 995 1404 /\A\s+\z/ || /\p{General_Category=Punctuation}/