• 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

35.71
/app/jobs/import/partner/process_xml_file_job.rb
1
module Import
1✔
2
  module Partner
1✔
3
    class ProcessXmlFileJob
1✔
4
      include Sidekiq::Job
1✔
5
      def perform(dump_id, file)
1✔
UNCOV
6
        scsb_file_dir = ENV.fetch('SCSB_FILE_DIR')
×
UNCOV
7
        filename = File.basename(file)
×
UNCOV
8
        reader = MARC::XMLReader.new(file.to_s, parser: :nokogiri)
×
UNCOV
9
        file_path = "#{scsb_file_dir}/#{filename}"
×
UNCOV
10
        writer = MARC::XMLWriter.new(file_path)
×
UNCOV
11
        reader.map { |record| writer.write(Scsb::PartnerUpdates::Full.process_record(record)) }
×
UNCOV
12
        writer.close
×
UNCOV
13
        Dump.attach_dump_file(dump_id, file_path, :recap_records_full)
×
UNCOV
14
        File.unlink(file) if File.exist?(file)
×
15
      end
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