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

pulibrary / tigerdata-app / 8d70f2ab-acc5-4aab-b64b-743d66ddd2eb

29 Aug 2025 06:22PM UTC coverage: 87.983% (-0.1%) from 88.118%
8d70f2ab-acc5-4aab-b64b-743d66ddd2eb

Pull #1801

circleci

JaymeeH
Merge branch '1586-request-mailer' of https://github.com/pulibrary/tiger-data-app into 1586-request-mailer
Pull Request #1801: 1586 request mailer

10 of 10 new or added lines in 2 files covered. (100.0%)

1173 existing lines in 56 files now uncovered.

2482 of 2821 relevant lines covered (87.98%)

317.98 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
1✔
UNCOV
3
  class TestAssetCreateRequest < Request
1✔
UNCOV
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
UNCOV
11
    def initialize(session_token:, parent_id:, count: 1, pattern: nil)
1✔
UNCOV
12
      super(session_token: session_token)
52✔
UNCOV
13
      @parent_id = parent_id
52✔
UNCOV
14
      @count = count
52✔
UNCOV
15
      @pattern = pattern
52✔
UNCOV
16
    end
17

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

UNCOV
24
    private
1✔
25

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