• 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

22.22
/marc_to_solr/lib/alma_reader.rb
1
# Alma MARC-XML files have no namespace defined, so we have to bypass that
2
# requirement in Nokogiri.
3
class AlmaReader < Traject::MarcReader
1✔
4
  def internal_reader
1✔
UNCOV
5
    @modified_internal_reader ||=
×
6
      begin
UNCOV
7
        result = super
×
UNCOV
8
        result.singleton_class.alias_method :old_start_element_namespace, :start_element_namespace
×
9
        # Redefine start_element_namespace to set the @ns to just be whatever
10
        # the URI is. For MARC records it's always the same anyways.
UNCOV
11
        result.singleton_class.define_method(:start_element_namespace) do |name, attributes = [], prefix = nil, uri = nil, ns = {}|
×
UNCOV
12
          @ns = uri
×
UNCOV
13
          old_start_element_namespace(name, attributes, prefix, uri, ns)
×
14
        end
UNCOV
15
        result
×
16
      end
17
  end
18
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