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

pulibrary / tigerdata-app / 21b3684e-2cf2-4e1c-adb5-a44be328e358

07 Nov 2025 03:59PM UTC coverage: 82.627% (-8.4%) from 91.075%
21b3684e-2cf2-4e1c-adb5-a44be328e358

Pull #2163

circleci

carolyncole
Handle error fetching project list
Pull Request #2163: Logs Mediaflux errors when fetching the project list

5 of 8 new or added lines in 1 file covered. (62.5%)

891 existing lines in 32 files now uncovered.

2592 of 3137 relevant lines covered (82.63%)

353.31 hits per line

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

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

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

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

UNCOV
27
    private
2✔
28

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