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

Code-Vedas / mutils / 6060940963

02 Sep 2023 10:54PM CUT coverage: 100.0%. Remained the same
6060940963

push

github

niteshpurohit
chore: maintainance

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

205 of 205 relevant lines covered (100.0%)

56736.31 hits per line

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

100.0
/lib/mutils/serialization/results/attributes.rb
1
# frozen_string_literal: true
2

3
# Module Mutils
4
module Mutils
4✔
5
  module Serialization
4✔
6
    # Module Results
7
    module Results
4✔
8
      # Module Attributes
9
      module Attributes
4✔
10
        def fetch_block_attributes(attributes, result_hash)
4✔
11
          attributes&.each do |key, s_options|
352,312✔
12
            arg = [scope]
80✔
13
            (arg << options[:params]) || {} unless s_options[:block].parameters.flatten.include?(:rest)
80✔
14

15
            result_hash[key] = s_options[:block].call(*arg)
80✔
16
          end
17
        end
18

19
        def fetch_attributes(attributes, result_hash)
4✔
20
          attributes&.each do |key, s_options|
352,312✔
21
            check_if_included(s_options, key) && (result_hash[key] = s_options[:method] ? send(key) : scope.send(key))
1,408,764✔
22
          end
23
        end
24
      end
25
    end
26
  end
27
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