• 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

100.0
/app/models/mediaflux/test_asset_create_request.rb
1
# frozen_string_literal: true
UNCOV
2
module Mediaflux
2✔
UNCOV
3
  class TestAssetCreateRequest < Request
2✔
UNCOV
4
    attr_reader :parent_id, :count, :pattern
2✔
5

6
    # Constructor
7
    # @param session_token [String] the API token for the authenticated session
8
    # @param parent_id [Integer] nid of namespace or collection to create the test assets in
9
    # @param count [Integer] Number of assets to create (default 1)
10
    # @param pattern [String] Optional base name of the assets to create
UNCOV
11
    def initialize(session_token:, parent_id:, count: 1, pattern: nil)
2✔
UNCOV
12
      super(session_token: session_token)
44✔
UNCOV
13
      @parent_id = parent_id
44✔
UNCOV
14
      @count = count
44✔
UNCOV
15
      @pattern = pattern
44✔
UNCOV
16
    end
17

18
    # Specifies the Mediaflux service to use when creating assets
19
    # @return [String]
UNCOV
20
    def self.service
2✔
UNCOV
21
      "asset.test.create"
88✔
UNCOV
22
    end
23

UNCOV
24
    private
2✔
25

UNCOV
26
      def build_http_request_body(name:)
2✔
UNCOV
27
        super do |xml|
88✔
UNCOV
28
          xml.args do
88✔
UNCOV
29
            xml.pid parent_id
88✔
UNCOV
30
            xml.nb count
88✔
UNCOV
31
            xml.send("base-name", pattern) if pattern.present?
88✔
UNCOV
32
          end
UNCOV
33
        end
UNCOV
34
      end
UNCOV
35
  end
UNCOV
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