Branch Coverage

blib/lib/Dancer/Plugin/SimpleLexicon.pm
Criterion Covered Total %
branch 24 36 66.6


line true false branch
195 0 2 unless $lang
201 0 1 unless $lang
202 0 1 unless (plugin_setting()->{'langs'}{$lang})
206 1 0 if (my $sn = plugin_setting()->{'session_name'}) { }
220 1 0 if ($settings and $$settings{'langs'} and $$settings{'path'}) { }
223 0 3 unless (-f $path)
228 0 3 unless $handler
246 10 0 if ($$settings{'param_name'})
254 2 8 if (not $lang and $$settings{'session_name'})
259 2 8 if (not $lang and $$settings{'var_name'})
264 0 10 if (not $lang and $$settings{'default'})
277 1 7 unless ($Handlers)
285 4 4 if (@args)
289 0 8 unless ($lang)
296 2 6 unless ($h)
305 0 6 unless (defined $translation and $translation =~ /\S/)
311 6 0 unless ($enc eq 'raw')
315 3 3 if (@args) { }