• 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

47.06
/app/services/alma/indexer/dump_file_indexer.rb
1
class Alma::Indexer
1✔
2
  class DumpFileIndexer
1✔
3
    attr_reader :dump_file, :solr_url
1✔
4

5
    delegate :index_file, to: :indexer
1✔
6
    def initialize(dump_file, solr_url:)
1✔
UNCOV
7
      @dump_file = dump_file
×
UNCOV
8
      @solr_url = solr_url
×
9
    end
10

11
    def index!
1✔
UNCOV
12
      decompress_file do |file|
×
UNCOV
13
        index_file(file.path)
×
14
      end
15
    end
16

17
    def indexer
1✔
UNCOV
18
      @indexer ||= Alma::Indexer.new(solr_url:)
×
19
    end
20

21
    def decompress_file(&)
1✔
UNCOV
22
      return dump_file.tar_decompress_file(&) if dump_file.path.include?('.tar')
×
23

24
      # SCSB files are only g-zipped.
UNCOV
25
      dump_file.unzip
×
UNCOV
26
      yield File.open(dump_file.path)
×
UNCOV
27
      dump_file.zip
×
28
    end
29
  end
30
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