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 Status < ActiveModelSerializers::Model |
× |
4 |
|
|
UNCOV
5
|
def api |
× |
UNCOV
6
|
true
|
× |
UNCOV
7
|
end
|
× |
8 |
|
|
UNCOV
9
|
def database |
× |
UNCOV
10
|
return @database if defined?(@database) |
× |
11 |
|
|
UNCOV
12
|
@database =
|
× |
UNCOV
13
|
begin
|
× |
UNCOV
14
|
Show.count.positive?
|
× |
UNCOV
15
|
rescue StandardError |
× |
UNCOV
16
|
false
|
× |
UNCOV
17
|
end
|
× |
UNCOV
18
|
end
|
× |
19 |
|
|
UNCOV
20
|
def file_system |
× |
UNCOV
21
|
return @file_system if defined?(@file_system) |
× |
22 |
|
|
UNCOV
23
|
@file_system =
|
× |
UNCOV
24
|
begin
|
× |
UNCOV
25
|
Dir.glob(File.join(FileStore::Structure.home, '*')).present? |
× |
UNCOV
26
|
rescue StandardError |
× |
27 |
false
|
× |
UNCOV
28
|
end
|
× |
UNCOV
29
|
end
|
× |
30 |
|
|
UNCOV
31
|
def code |
× |
UNCOV
32
|
database && file_system ? :ok : :service_unavailable |
× |
UNCOV
33
|
end
|
× |
34 |
|
|
UNCOV
35
|
end
|
× |