line |
true |
false |
branch |
81
|
1 |
4 |
unless (defined $file)
|
96
|
1 |
2 |
unless (defined $string)
|
100
|
0 |
2 |
unless open my $fh, '<', \$string
|
117
|
1 |
9 |
if (not defined $fh) { }
|
|
1 |
8 |
elsif (ref $fh ne 'GLOB') { }
|
136
|
0 |
28 |
unless ($_)
|
172
|
2 |
12 |
unless (defined $file)
|
180
|
0 |
12 |
unless (defined $ngram)
|
184
|
6 |
6 |
unless (defined $$self{'_dict'}{$ngram})
|
188
|
1 |
5 |
unless (defined $count)
|
192
|
2 |
4 |
if ($count < 1)
|
196
|
0 |
4 |
unless (defined $$self{'_dict'}{$self->get_max_ngram})
|
201
|
4 |
0 |
unless open my $fhModel, '>:gzip:bytes', $file
|
208
|
0 |
0 |
unless $$self{'_dict'}{$ngram}{$b} <=> $$self{'_dict'}{$ngram}{$a}
|
214
|
0 |
0 |
if (++$i > $count)
|