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

pulibrary / tigerdata-app / 54385a8c-ec76-421e-81fd-41bf4c9d5b76

21 Jul 2025 08:55PM UTC coverage: 66.374% (-5.3%) from 71.631%
54385a8c-ec76-421e-81fd-41bf4c9d5b76

push

circleci

web-flow
Upgrade mediaflux build to v0.7.0 (#1617)

* Upgrade mediaflux build to v0.7.0

* prettier

* Upgrade mflux version used by the test suite

* tagging integration tests

* tagging integration tests

4 of 18 branches covered (22.22%)

0 of 1 new or added line in 1 file covered. (0.0%)

222 existing lines in 24 files now uncovered.

2722 of 4101 relevant lines covered (66.37%)

295.38 hits per line

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

40.91
/app/models/mediaflux/range_query_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
1✔
3
  class RangeQueryRequest < Request
1✔
4
    attr_reader :aql_query, :idx, :size, :collection, :namespace, :action
1✔
5

6
    # Constructor
7
    # @param session_token [String] the API token for the authenticated session
8
    # @param collection [Integer] collection id
9
    # @param xpath [String]  xpath expression for item to calculate the range against
10
    def initialize(session_token:, collection: nil, xpath: nil)
1✔
UNCOV
11
      super(session_token: session_token)
×
UNCOV
12
      @collection = collection
×
UNCOV
13
      @xpath = xpath
×
14
    end
15

16
    # Specifies the Mediaflux service to use when running a query
17
    # @return [String]
18
    def self.service
1✔
UNCOV
19
      "asset.query"
×
20
    end
21

22
    # minimum value for xpath
23
    def minimum
1✔
UNCOV
24
      min_str = response_xml.xpath("/response/reply/result/value/min").text
×
UNCOV
25
      min_str.to_i
×
26
    end
27

28
    # maximum value for xpath
29
    def maximum
1✔
UNCOV
30
      max_str = response_xml.xpath("/response/reply/result/value/max").text
×
UNCOV
31
      max_str.to_i
×
32
    end
33

34
    private
1✔
35

36
      def build_http_request_body(name:)
1✔
UNCOV
37
        super do |xml|
×
UNCOV
38
          xml.args do
×
UNCOV
39
            xml.collection @collection
×
UNCOV
40
            xml.action "range"
×
UNCOV
41
            xml.xpath @xpath
×
42
          end
43
        end
44
      end
45
  end
46
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