Branch Coverage

blib/lib/Clustericious/Plugin/PlugAuth.pm
Criterion Covered Total %
branch 21 28 75.0


line true false branch
20 4 3 if defined $url
21 0 7 if ($@)
37 8 18 unless (my $auth = $c->req->headers->authorization)
58 3 15 if (my $res = $tx->success) { }
59 3 0 if ($res->code == 200) { }
70 15 0 if ($error->{'code'}) { }
92 2 13 if (not defined $check or $check == 503)
95 2 0 if ($error->{'code'}) { }
103 10 3 if ($check == 200)
109 3 0 if defined $res
124 0 8 unless my $user = $c->stash('user')
125 0 8 unless @_ == 2
138 5 3 if ($code and $code == 200)
144 1 2 if ($code == 503) { }