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

Code-Vedas / mutils / 9253698543

27 May 2024 11:00AM CUT coverage: 100.0%. Remained the same
9253698543

push

github

web-flow
build(deps): bump rubocop from 1.63.2 to 1.64.0 (#290)

Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.63.2 to 1.64.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.63.2...v1.64.0)

---
updated-dependencies:
- dependency-name: rubocop
  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