Branch Coverage

blib/lib/Locale/Maketext/Extract.pm
Criterion Covered Total %
branch 57 86 66.2


line true false branch
40 0 10 unless $plugins
47 133 1 unless $_[0]{'header'}
62 0 0 unless $_[0]->entries->{$_[1]}
66 6 174 unless $_[0]->compiled_entries->{$_[1]}
72 10 173 if (@_)
82 38 0 if require $filename
84 0 38 unless (eval { do { '???' if require $filename; 1 } })
86 0 0 if $$self{'warnings'}
91 6 32 $params{$name} ? :
114 0 2 if $$self{'verbose'}
120 0 2 unless open LEXICON, $file
122 2 22 unless 1 .. /^$/
135 2 0 if (defined $_)
156 5 89 $_[0]{'fuzzy'}{$_[1]} ? :
170 0 68 if $$self{'verbose'}
174 0 68 unless open LEXICON, ">$file"
181 1 89 if (my $comment = $self->msg_comment($msgid))
188 3 87 if $add_format_marker
189 2 88 if $flags
193 0 68 if $$self{'verbose'}
214 159 0 unless @plugins
219 181 6 if ($success) { }
221 0 181 if ($verbose > 1 and @$entries)
231 0 185 if ($verbose > 2)
232 0 0 unless defined $vars
249 0 6 if ($$self{'warnings'})
259 0 0 $error_found ? :
0 0 if $verbose and $total || $error_found
263 0 159 if @messages
272 0 2 unless open FH, $file
290 6 171 $entries_are_in_gettext_style ? :
296 177 0 unless exists $$lexicon{$compiled_key}
312 90 0 unless not $self->has_msgid($msgid) and $self->has_msgid($nospace)
323 177 0 defined $msg_str ? :
331 1 89 $$self{'wrap'} ? :
344 51 5 unless not length $var or $seen{$var}++
352 1 2 if $msgid =~ /%(?:[1-9]\d*|\w+\([^\)]*\))/
388 0 183 unless defined $text
414 154 26 unless $str =~ /\n/
417 23 3 if ($str =~ /\n"$/) { }
423 10 16 $multi_line ? :
429 157 14 unless $file
436 70 42 if not $is_generic