push
circleci
0 of 33 new or added lines in 1 file covered. (0.0%)
9374 existing lines in 213 files now uncovered.47 of 9753 relevant lines covered (0.48%)
0.01 hits per line
| 1 |
# frozen_string_literal: true
|
|
| 2 |
|
|
| 3 |
# This component is responsible for displaying an SVG icon
|
|
| 4 |
# that corresponds to the provided format string.
|
|
| 5 |
#
|
|
| 6 |
# It should only be used for decorative icons that have a
|
|
| 7 |
# text alternative close
|
|
|
UNCOV
8
|
class DecorativeFormatIconComponent < ViewComponent::Base |
× |
|
UNCOV
9
|
def initialize(format) |
× |
|
UNCOV
10
|
@format = format
|
× |
|
UNCOV
11
|
end
|
× |
| 12 |
|
|
|
UNCOV
13
|
private |
× |
| 14 |
|
|
|
UNCOV
15
|
attr_reader :format
|
× |
| 16 |
|
|
|
UNCOV
17
|
def render? |
× |
|
UNCOV
18
|
[ |
× |
|
UNCOV
19
|
'Audio',
|
× |
|
UNCOV
20
|
'Archival item',
|
× |
|
UNCOV
21
|
'Book',
|
× |
|
UNCOV
22
|
'Coin',
|
× |
|
UNCOV
23
|
'Databases',
|
× |
|
UNCOV
24
|
'Data file',
|
× |
|
UNCOV
25
|
'Journal',
|
× |
|
UNCOV
26
|
'Manuscript',
|
× |
|
UNCOV
27
|
'Map',
|
× |
|
UNCOV
28
|
'Microform',
|
× |
|
UNCOV
29
|
'Musical score',
|
× |
|
UNCOV
30
|
'Senior thesis',
|
× |
|
UNCOV
31
|
'Video/Projected medium',
|
× |
|
UNCOV
32
|
'Visual material'
|
× |
|
UNCOV
33
|
].include? format |
× |
|
UNCOV
34
|
end
|
× |
|
UNCOV
35
|
end
|
× |