github
0 of 18 new or added lines in 4 files covered. (0.0%)
3922 existing lines in 105 files now uncovered.0 of 4086 relevant lines covered (0.0%)
0.0 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
UNCOV
3
|
class StatusController < ApplicationController |
× |
4 |
|
|
UNCOV
5
|
swagger_path '/status' do |
× |
UNCOV
6
|
operation :get do |
× |
UNCOV
7
|
key :description, 'Get the application status' |
× |
UNCOV
8
|
key :tags, [:status, :public] |
× |
9 |
|
|
UNCOV
10
|
response_entity('Status')
|
× |
11 |
|
|
UNCOV
12
|
response 503 do |
× |
UNCOV
13
|
key :description, '(some) services unavailable' |
× |
UNCOV
14
|
schema do
|
× |
UNCOV
15
|
property :data do |
× |
UNCOV
16
|
key '$ref', 'Status' |
× |
UNCOV
17
|
end
|
× |
UNCOV
18
|
end
|
× |
UNCOV
19
|
end
|
× |
UNCOV
20
|
end
|
× |
UNCOV
21
|
end
|
× |
22 |
|
|
UNCOV
23
|
def show |
× |
UNCOV
24
|
render json: status, serializer: StatusSerializer, status: status.code |
× |
UNCOV
25
|
end
|
× |
26 |
|
|
UNCOV
27
|
private |
× |
28 |
|
|
UNCOV
29
|
def status |
× |
UNCOV
30
|
@status ||= Status.new |
× |
UNCOV
31
|
end
|
× |
32 |
|
|
UNCOV
33
|
end
|
× |