Condition Coverage

blib/lib/YATT/Lite/WebMVC0/Partial/LangSwitch.pm
Criterion Covered Total %
condition 0 20 0.0


and 3 conditions

line !l l&&!r l&&r condition
41 0 0 0 not $user and my $sub = $self->can('load_current_user')
54 0 0 0 do { $ck_lang ne $lang unless not $ck_lang } && do { $con->set_cookie($lang_key, $lang, -'path', $con->site_location) }
56 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)

or 2 conditions

line l !l condition
22 0 0 $self->{'cf_default_lang'} // 'en'

or 3 conditions

line l !l&&r !l&&!r condition
68 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