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

Code-Vedas / mutils / 4249393637

pending completion
4249393637

push

github

GitHub
build(deps): bump rubocop from 1.45.1 to 1.46.0 (#239)

205 of 205 relevant lines covered (100.0%)

14184.08 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
1✔
5
  module Serialization
1✔
6
    # Module Results
7
    module Results
1✔
8
      # Module Attributes
9
      module Attributes
1✔
10
        def fetch_block_attributes(attributes, result_hash)
1✔
11
          attributes&.each do |key, s_options|
88,078✔
12
            arg = [scope]
20✔
13
            arg << options[:params] || {} unless s_options[:block].parameters.flatten.include?(:rest)
20✔
14

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

19
        def fetch_attributes(attributes, result_hash)
1✔
20
          attributes&.each do |key, s_options|
88,078✔
21
            check_if_included(s_options, key) && (result_hash[key] = s_options[:method] ? send(key) : scope.send(key))
352,191✔
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