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

pulibrary / allsearch_api / d95529c8-ccb8-420d-95f4-a8e613b4aa59

03 Jul 2025 12:26AM UTC coverage: 99.514% (+0.007%) from 99.507%
d95529c8-ccb8-420d-95f4-a8e613b4aa59

push

circleci

web-flow
Merge pull request #382 from pulibrary/catalog-rack-app

Migrate Catalog from Rails controller to Rack app

18 of 21 new or added lines in 2 files covered. (85.71%)

101 existing lines in 19 files now uncovered.

1024 of 1029 relevant lines covered (99.51%)

92.23 hits per line

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

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

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

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

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

16
  # TODO: Would it be possible to add this to the sheet? or is it irrelevant?
17
  def publisher; end
3✔
18

19
  # TODO: Could we add identifiers to the sheet? Then they would be more likely to stay consistent
20
  def id
3✔
UNCOV
21
    document.id
3✔
22
  end
23

24
  # TODO: Can we add this to the sheet? Or should they all be "Electronic Resource" or similar?
25
  def type
3✔
UNCOV
26
    'Electronic Resource'
3✔
27
  end
28

29
  def description
3✔
UNCOV
30
    document.description
3✔
31
  end
32

33
  def url
3✔
UNCOV
34
    document.url
3✔
35
  end
36

37
  # No other fields needed at this time
38
  def other_fields; end
3✔
39
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