Branch Coverage

blib/lib/Lingua/Jspell/DictManager.pm
Criterion Covered Total %
branch 0 136 0.0


line true false branch
29 0 0 if (ref $_[0] eq 'HASH')
32 0 0 if ($aff =~ /^from:(.*)/)
35 0 0 unless open F, ">__$$.dic"
36 0 0 unless open G, $_
41 0 0 if $opt{'yaml'}
44 0 0 if ($opt{'hash'}) { }
47 0 0 if ($opt{'irr'})
48 0 0 unless copy($opt{'irr'}, catfile($Lingua::Jspell::JSPELLLIB, $opt{'irr'}))
51 0 0 unless copy("__$$.hash", catfile($Lingua::Jspell::JSPELLLIB, "$name.hash"))
53 0 0 if ($cpaff)
54 0 0 unless copy($aff, catfile($Lingua::Jspell::JSPELLLIB, "$name.aff"))
57 0 0 if ($opt{'yaml'})
58 0 0 unless copy($opt{'yaml'}, catfile($Lingua::Jspell::JSPELLLIB, "$name.yaml"))
61 0 0 unless copy("__$$.hash", catfile($Lingua::Jspell::JSPELLLIB, "$_.hash"))
71 0 0 unless open F, $file
73 0 0 if m[^#([^/]+)/([^/]+)/]
74 0 0 if m[^#([^/]+)/([^/]+)/]
77 0 0 unless copy($file, "$file.old")
86 0 0 if (ref $_[0] eq 'HASH')
88 0 0 unless open DIC, $dic->{'filename'}
89 0 0 unless open NDIC, ">$dic->{'filename'}.new"
91 0 0 if (/^#/ or /^\s*$/)
95 0 0 $flags ? :
96 0 0 if (not $opt{'rawfea'}) { }
98 0 0 if ($class =~ /^\$/) { }
100 0 0 unless $dic->{'shortcut'}{$1}
0 0 if $class
101 0 0 $class ? :
104 0 0 if (@atts % 2) { }
125 0 0 if (ref $_[0] eq 'HASH')
127 0 0 unless open DIC, $dic->{'filename'}
129 0 0 if /^#/
130 0 0 if /^\s*$/
133 0 0 if ($opt{'type'} eq 'struct') { }
0 0 elsif ($opt{'type'} eq 'raw') { }
134 0 0 unless $dic->{'shortcut'}{$1}
0 0 if $class
135 0 0 $flags ? :
136 0 0 $class ? :
138 0 0 if (@atts % 2) { }
164 0 0 if ($this_cat eq $ct)
167 0 0 unless (exists $fs{$fl})
189 0 0 if ($this_cat eq $ct)
192 0 0 if (exists $fs{$fl})
204 0 0 unless open DIC, $dic->{'filename'}
207 0 0 if /^#/
208 0 0 if /^\s*$/
213 0 0 unless $cat =~ m[^/]
227 0 0 unless open DIC, $dic->{'filename'}
230 0 0 if /^#/
231 0 0 if /^\s*$/
236 0 0 if (@rads > 1)
237 0 0 if rand > 0.99
239 0 0 if $r eq $word
243 0 0 if ($fea->{'rad'} eq $word)
245 0 0 if (_same_cat($fea1->{'CAT'}, $fea->{'CAT'}))
259 0 0 if ($from{$from{$_}{'word'}}{'word'}) { }
272 0 0 if (defined $a and defined $b) { }
304 0 0 unless open DIC, $dict->{'filename'}
305 0 0 unless open NDIC, ">$dict->{'filename'}.new"
307 0 0 if /^#/
314 0 0 /./ ? :
325 0 0 unless open DIC, $dict->{'filename'}
326 0 0 unless open NDIC, ">$dict->{'filename'}.new"
329 0 0 if m[^(.+?)/]
330 0 0 unless $t =~ /^$pal$/
347 0 0 if ($words{$w})
369 0 0 if (ref $atts) { }