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

pulibrary / bibdata / 1dcebae2-3318-4e77-bc53-82276e293354

02 May 2025 04:45PM UTC coverage: 28.256% (-63.9%) from 92.189%
1dcebae2-3318-4e77-bc53-82276e293354

push

circleci

sandbergja
Add basic infrastructure for compiling rust code

* Add a rake compile task to compile
* Run the rake task in CI
* Run the rake task before rspec tests with the rust tag, to provide quick feedback on rust changes in TDD cycles

2 of 7 new or added lines in 2 files covered. (28.57%)

2467 existing lines in 97 files now uncovered.

1089 of 3854 relevant lines covered (28.26%)

0.29 hits per line

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

50.0
/marc_to_solr/lib/format.rb
1
require_relative './format/bib_format'
1✔
2
require_relative './format/bib_types'
1✔
3

4
# Adapted from: https://github.com/billdueber/traject_umich_format
5
class Format
1✔
6
  # @!attribute [r] record
7
  #   The record passed into the constructor
8
  # @!attribute [r] bib_format
9
  #   The bib format code as computed from the passed record
10
  # @!attribute [r] types
11
  #   A (possibly empty) array of type codes as computed from record data
12
  attr_reader :bib_format, :record, :types
1✔
13

14
  # Construct a Formats object from the given record, calcuclating
15
  # the bib_format and types
16
  #
17
  # @param [MARC::Record] record
18
  def initialize(marc_record)
1✔
UNCOV
19
    @record     = marc_record
×
UNCOV
20
    @bib_format = BibFormat.new(record).code
×
UNCOV
21
    @types      = BibTypes.new(@bib_format, record).codes
×
22
  end
23

24
  def format_and_types
1✔
25
    types = @types.dup
×
26
    types.unshift bib_format
×
27
    types
×
28
  end
29
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