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

pulibrary / tigerdata-app / 8d70f2ab-acc5-4aab-b64b-743d66ddd2eb

29 Aug 2025 06:22PM UTC coverage: 87.983% (-0.1%) from 88.118%
8d70f2ab-acc5-4aab-b64b-743d66ddd2eb

Pull #1801

circleci

JaymeeH
Merge branch '1586-request-mailer' of https://github.com/pulibrary/tiger-data-app into 1586-request-mailer
Pull Request #1801: 1586 request mailer

10 of 10 new or added lines in 2 files covered. (100.0%)

1173 existing lines in 56 files now uncovered.

2482 of 2821 relevant lines covered (87.98%)

317.98 hits per line

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

100.0
/app/models/mediaflux/store_list_request.rb
1
# frozen_string_literal: true
UNCOV
2
module Mediaflux
1✔
UNCOV
3
  class StoreListRequest < Request
1✔
4
    # Constructor
5
    # @param session_token [String] the API token for the authenticated session
6
    # @param name [String] Name of the Asset
7
    # @param collection [Boolean] create a collection asset if true
8
    # @param namespace [String] Optional Parent namespace for the asset to be created in
9
    # @param pid [Integer] Optional Parent id for the asset to be created in
UNCOV
10
    def initialize(session_token:)
1✔
UNCOV
11
      super(session_token: session_token)
1✔
UNCOV
12
    end
13

14
    # Specifies the Mediaflux service to use when creating assets
15
    # @return [String]
UNCOV
16
    def self.service
1✔
UNCOV
17
      "asset.store.list"
2✔
UNCOV
18
    end
19

UNCOV
20
    def stores
1✔
UNCOV
21
      @stores ||= begin
1✔
UNCOV
22
                    xml = response_xml
1✔
UNCOV
23
                    xml.xpath("/response/reply/result/store").map do |node|
1✔
UNCOV
24
                      {
UNCOV
25
                        id: node.xpath("@id").text,
5✔
UNCOV
26
                        type: node.xpath("./type").text,
UNCOV
27
                        name: node.xpath("./name").text,
UNCOV
28
                        tag: node.xpath("./tag").text
UNCOV
29
                      }
UNCOV
30
                    end
UNCOV
31
                  end
UNCOV
32
    end
UNCOV
33
  end
UNCOV
34
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