Branch Coverage

blib/lib/Mojolicious/Plugin/Authentication.pm
Criterion Covered Total %
branch 35 44 79.5


line true false branch
14 0 7 unless $args
19 0 14 unless grep((ref $_ eq "CODE"), @$args{$cb_name, $p_name})
22 0 7 $@ ? :
23 8 6 unless $args->{$p_name}
26 0 7 if (defined $args->{'lazy'})
44 0 7 ref $args->{'fail_render'} eq 'CODE' ? :
67 5 2 if $autoload_user
73 4 4 unless ($res)
75 1 3 if $fail
146 9 12 unless defined $uid
148 12 0 if ($user) { }
162 14 10 unless defined $uid
165 10 0 if ($user) { }
183 1 23 if (defined $user)
189 21 2 unless $stash->{'no_user'} or defined $stash->{'user'}
199 1 5 if (defined $user)
206 2 3 $stash->{'no_user'} || defined $stash->{'user'} ? :
226 2 5 unless defined $uid
230 5 0 if defined &$current_user($c)
241 0 3 defined $extradata->{'auto_validate'} ? :
244 1 2 unless defined $uid
250 2 1 defined $_[0] ? :