Branch Coverage

blib/lib/Mojolicious/Plugin/OpenAPI/Security.pm
Criterion Covered Total %
branch 28 30 93.3


line true false branch
10 56 3 unless my $handlers = $config->{'security'}
12 0 3 unless $openapi->validator->get($DEF_PATH{$openapi->validator->moniker})
24 2 2 if $c->req->method eq "OPTIONS" and $c->match->stack->[-1]{'openapi.default_options'}
27 6 20 unless $spec->{'security'}
40 4 17 ref $res{$name} ? :
21 23 if defined $res{$name}
46 13 19 unless (@e)
47 4 7 unless $sync_mode or $c->continue
11 2 if eval { do { 1 unless $sync_mode or $c->continue } }
59 11 2 if $status < 500
68 4 42 if (not $security_cb) { }
40 2 elsif (not exists $res{$name}) { }
69 4 0 unless exists $res{$name}
83 24 14 if --$n_checks == 0
94 17 7 $n_checks ? :