• 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/relations.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 Relations
9
      module Relations
4✔
10
        def hash_relationships(relationships_array, result_hash)
4✔
11
          relationships = relationships_array&.compact
352,312✔
12
          relationships&.each do |key, s_options|
352,312✔
13
            object = scope.send(key)
316✔
14
            name = s_options[:label]
316✔
15
            Lib::Helper.instance.collection?(object) && (name = Lib::Helper.instance.pluralize(name))
316✔
16
            name = name.to_sym
316✔
17
            check_if_included(s_options, key) && (result_hash[name] = Lib::Helper.instance.constantize(s_options[:serializer]).new(object).to_h)
316✔
18
          end
19
        end
20
      end
21
    end
22
  end
23
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