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

pulibrary / tigerdata-app / 5205f704-d89d-4c43-8cfa-9e6783edc33a

29 Feb 2024 07:04PM UTC coverage: 60.206% (-29.9%) from 90.092%
5205f704-d89d-4c43-8cfa-9e6783edc33a

push

circleci

jrgriffiniii
Ensuring that the storage usage and storage capacity is retrieved for
Mediaflux Projects and rendered on the "contents" Project View

11 of 34 new or added lines in 4 files covered. (32.35%)

451 existing lines in 34 files now uncovered.

935 of 1553 relevant lines covered (60.21%)

9.47 hits per line

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

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

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

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