Branch Coverage

blib/lib/WWW/Translate/Apertium.pm
Criterion Covered Total %
branch 10 36 27.7


line true false branch
80 0 2 unless exists $defaults{$_}
83 0 2 if ($_ eq 'output' and not exists $output{$overrides{'output'}})
87 0 2 if ($_ eq 'lang_pair' and not exists $lang_pairs{$overrides{'lang_pair'}})
101 0 2 if ($this{'store_unknown'})
119 0 0 if (@_ > 0) { }
126 0 0 if $string eq ''
139 0 0 if ($$self{'output'} eq 'marked_text') { }
148 0 0 unless ($response->is_success)
154 0 0 unless (defined $response)
165 0 0 if ($$self{'output'} eq 'marked_text')
167 0 0 if ($$self{'store_unknown'})
170 0 0 if ($translated =~ /(?:^|\W)\*/)
186 26 27 if (@_) { }
188 0 26 if (not exists $lang_pairs{$pair}) { }
202 1 3 if (@_) { }
204 1 0 if exists $output{$format}
213 0 0 if (@_ and $$self{'store_unknown'}) { }
215 0 0 if ($lang_code =~ /^(?:br|ca|cy|en|eo|es|eu|fr|gl|is|nb|nn|oc|oc_aran|pt|ro|sv|bg|mk)$/) { }