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

pulibrary / tigerdata-app / ae02137a-70bd-498e-bde2-dc1371c6d829

04 Nov 2025 07:51PM UTC coverage: 91.058% (-0.3%) from 91.403%
ae02137a-70bd-498e-bde2-dc1371c6d829

Pull #2128

circleci

hectorcorrea
Linked GitHub issue to TODO
Pull Request #2128: Project Show page now displays metadata straight from Mediaflux

64 of 71 new or added lines in 8 files covered. (90.14%)

742 existing lines in 45 files now uncovered.

2831 of 3109 relevant lines covered (91.06%)

530.85 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
2✔
UNCOV
3
  class StoreListRequest < Request
2✔
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:)
2✔
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
2✔
17
      "asset.store.list"
2✔
UNCOV
18
    end
19

UNCOV
20
    def stores
2✔
21
      @stores ||= begin
1✔
22
                    xml = response_xml
1✔
23
                    xml.xpath("/response/reply/result/store").map do |node|
1✔
UNCOV
24
                      {
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