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

pulibrary / allsearch_api / 2cea024f-721c-4949-9808-f4a97b58e3a6

27 Jun 2025 03:33PM UTC coverage: 99.491% (+12.3%) from 87.156%
2cea024f-721c-4949-9808-f4a97b58e3a6

push

circleci

Ryan Laddusaw
Add a value for count of electronic access options

2 of 2 new or added lines in 1 file covered. (100.0%)

62 existing lines in 17 files now uncovered.

978 of 983 relevant lines covered (99.49%)

102.54 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