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

Code-Vedas / mutils / 12468956720

23 Dec 2024 03:14PM CUT coverage: 100.0%. Remained the same
12468956720

push

github

web-flow
build(deps): bump json from 2.8.2 to 2.9.1 (#315)

Bumps [json](https://github.com/ruby/json) from 2.8.2 to 2.9.1.
- [Release notes](https://github.com/ruby/json/releases)
- [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md)
- [Commits](https://github.com/ruby/json/compare/v2.8.2...v2.9.1)

---
updated-dependencies:
- dependency-name: json
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

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