blib/lib/YATT/Lite/WebMVC0/Partial/LangSwitch.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 0 | 20 | 0.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
39 | 0 | 0 | 0 | not $user and my $sub = $self->can('load_current_user') |
54 | 0 | 0 | 0 | $user and $sub = $user->can('pref_lang') |
0 | 0 | 0 | $user and $sub = $user->can('pref_lang') and my $ul = &$sub($user) |
line | l | !l | condition |
---|---|---|---|
20 | 0 | 0 | $self->{'cf_default_lang'} // 'en' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
52 | 0 | 0 | 0 | not $ck_lang or $ck_lang ne $lang |
66 | 0 | 0 | 0 | $con->accept_language('filter', $self->{'cf_lang_list'} // ['en', 'ja']) || $yatt->default_lang |
0 | 0 | 0 | $lang ||= $con->accept_language('filter', $self->{'cf_lang_list'} // ['en', 'ja']) || $yatt->default_lang |