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 |
# This component is responsible for displaying location information about
|
|
| 3 |
# a holding on the search results page
|
|
|
UNCOV
4
|
class Holdings::SearchLocationComponent < ViewComponent::Base |
× |
|
UNCOV
5
|
def initialize(holding_hash) |
× |
|
UNCOV
6
|
@holding_hash = holding_hash
|
× |
|
UNCOV
7
|
end
|
× |
| 8 |
|
|
|
UNCOV
9
|
private |
× |
| 10 |
|
|
|
UNCOV
11
|
attr_reader :holding_hash
|
× |
| 12 |
|
|
|
UNCOV
13
|
def location |
× |
|
UNCOV
14
|
in_library_use_label = InLibraryUse.new(holding_hash['location_code']).label |
× |
|
UNCOV
15
|
return in_library_use_label if in_library_use_label |
× |
|
UNCOV
16
|
helpers.holding_library_label(holding_hash) |
× |
|
UNCOV
17
|
end
|
× |
| 18 |
|
|
|
UNCOV
19
|
def call_number |
× |
|
UNCOV
20
|
CallNumber.new(holding_hash['call_number']).with_line_break_suggestions |
× |
|
UNCOV
21
|
end
|
× |
|
UNCOV
22
|
end
|
× |