Branch Coverage

blib/lib/Captive/Portal/Role/I18N.pm
Criterion Covered Total %
branch 8 16 50.0


line true false branch
59 0 4 if $lang eq '*'
62 0 4 if defined $quant and not looks_like_number $quant
65 4 0 unless (defined $quant)
75 4 0 unless ($languages{$lang})
81 0 0 if ($quant > $languages{$lang})
101 2 2 if (grep /\A\Q$lang\E\Z/, @{$self->cfg->{'I18N_LANGUAGES'};})
153 0 1 unless my $text = shift()
159 0 1 unless ($i18n_text)