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

pulibrary / tigerdata-app / 88c82417-71e1-4f84-8337-7bf4bd1a5618

29 Jul 2025 08:15PM UTC coverage: 75.423% (-5.2%) from 80.666%
88c82417-71e1-4f84-8337-7bf4bd1a5618

Pull #1656

circleci

hectorcorrea
Marked a bunch of tests as integration since they create projects in Mediaflux
Pull Request #1656: Added error handling to the request to project workflow

12 of 17 new or added lines in 4 files covered. (70.59%)

157 existing lines in 19 files now uncovered.

2274 of 3015 relevant lines covered (75.42%)

344.11 hits per line

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

41.18
/app/models/mediaflux/test_asset_create_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
1✔
3
  class TestAssetCreateRequest < Request
1✔
4
    attr_reader :parent_id, :count, :pattern
1✔
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
11
    def initialize(session_token:, parent_id:, count: 1, pattern: nil)
1✔
UNCOV
12
      super(session_token: session_token)
×
UNCOV
13
      @parent_id = parent_id
×
UNCOV
14
      @count = count
×
UNCOV
15
      @pattern = pattern
×
16
    end
17

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

24
    private
1✔
25

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