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 |
|
|
|
UNCOV
3
|
class Orangelight::CallNumber < ApplicationRecord |
× |
|
UNCOV
4
|
def self.table_name_prefix |
× |
|
UNCOV
5
|
"#{BrowseLists.table_prefix}_"
|
× |
|
UNCOV
6
|
end
|
× |
| 7 |
|
|
| 8 |
# Compares two CallNumber instances
|
|
| 9 |
# @see Object#<=>
|
|
| 10 |
# @param [Orangelight::CallNumber] other
|
|
| 11 |
# @return [Integer]
|
|
|
UNCOV
12
|
def <=>(other) |
× |
|
UNCOV
13
|
return 1 unless other.is_a?(self.class) |
× |
|
UNCOV
14
|
return label <=> other.label if sort.nil? && other.nil? |
× |
| 15 |
|
|
|
UNCOV
16
|
sort <=> other.sort |
× |
|
UNCOV
17
|
end
|
× |
|
UNCOV
18
|
end
|
× |