• 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

0.0
/app/models/mediaflux/http/iterator_destroy_request.rb
1
# frozen_string_literal: true
UNCOV
2
module Mediaflux
×
UNCOV
3
  module Http
×
UNCOV
4
    class IteratorDestroyRequest < Request
×
5
      # Constructor
6
      # @param session_token [String] the API token for the authenticated session
7
      # @iterator [Int] The iterator to destroy (This is the value returned by QueryRequest)
UNCOV
8
      def initialize(session_token:, iterator:)
×
UNCOV
9
        super(session_token: session_token)
×
UNCOV
10
        @iterator = iterator
×
UNCOV
11
      end
×
12

13
      # Specifies the Mediaflux service to use when running a query
14
      # @return [String]
UNCOV
15
      def self.service
×
UNCOV
16
        "asset.query.iterator.destroy"
×
UNCOV
17
      end
×
18

19
      # Returns empty string if iterator was destroyed, error message otherwise.
20
      # Notice that once have run through an iterator Mediaflux destroys it automatically
21
      # so it is possible to get an error indicating that an iterator does not exist if
22
      # Mediaflux deleted it on its own.
UNCOV
23
      def result
×
24
        xml = response_xml
×
25
        xml.xpath("/response/reply['error']").text
×
UNCOV
26
      end
×
27

UNCOV
28
      private
×
29

UNCOV
30
        def build_http_request_body(name:)
×
UNCOV
31
          super do |xml|
×
UNCOV
32
            xml.args do
×
UNCOV
33
              xml.id @iterator
×
UNCOV
34
            end
×
UNCOV
35
          end
×
UNCOV
36
        end
×
UNCOV
37
    end
×
UNCOV
38
  end
×
UNCOV
39
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