• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / allsearch_api / 29cc47ba-38a5-447a-9a89-fa55bc36f401

14 Oct 2025 01:59PM UTC coverage: 99.32% (-0.2%) from 99.514%
29cc47ba-38a5-447a-9a89-fa55bc36f401

Pull #395

circleci

sandbergja
add missing require_relative
Pull Request #395: Migrate a few more controllers away from Rails

8 of 8 new or added lines in 4 files covered. (100.0%)

90 existing lines in 18 files now uncovered.

1022 of 1029 relevant lines covered (99.32%)

96.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/app/models/library_database_document.rb
1
# frozen_string_literal: true
2

3
# This class is responsible for getting relevant
4
# metadata from the LibraryDatabaseRecord in the database
5
# The document is a LibraryDatabaseRecord
6
class LibraryDatabaseDocument < Document
3✔
7
  private
3✔
8

9
  def title
3✔
UNCOV
10
    document.name
21✔
11
  end
12

13
  # Not relevant for this service
14
  def creator; end
3✔
15

16
  # Not relevant for this service
17
  def publisher; end
3✔
18

19
  def id
3✔
UNCOV
20
    document.libguides_id
21✔
21
  end
22

23
  def type
3✔
UNCOV
24
    'Database'
21✔
25
  end
26

27
  def description
3✔
UNCOV
28
    sanitize document.description
21✔
29
  end
30

31
  def url
3✔
UNCOV
32
    document.friendly_url
21✔
33
  end
34

35
  def doc_keys
3✔
UNCOV
36
    [:subjects, :alternative_titles]
21✔
37
  end
38

39
  def subjects
3✔
UNCOV
40
    document.subjects&.join(', ')
21✔
41
  end
42

43
  def alternative_titles
3✔
UNCOV
44
    document.alt_names&.join(', ')
21✔
45
  end
46
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc