Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor refactorings in StatisticsCalculator #8603

Merged
merged 2 commits into from Apr 30, 2024
Merged

Conversation

mnonnenmacher
Copy link
Member

See the commit messages for details.

Let the local helper function `countLicenses` operate on
`Set<Identifier>` instead of `Collection<Identifier>` as it is only ever
called on sets. This makes the `distinct` call redundant.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.com>
`eachCount()` already returns a map.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.com>
@mnonnenmacher mnonnenmacher requested a review from a team as a code owner April 30, 2024 08:44
@mnonnenmacher mnonnenmacher enabled auto-merge (rebase) April 30, 2024 08:44
Copy link

codecov bot commented Apr 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.70%. Comparing base (2c1d375) to head (bc8c264).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8603   +/-   ##
=========================================
  Coverage     67.70%   67.70%           
  Complexity     1007     1007           
=========================================
  Files           246      246           
  Lines          7924     7924           
  Branches        883      883           
=========================================
  Hits           5365     5365           
  Misses         2176     2176           
  Partials        383      383           
Flag Coverage Δ
funTest-non-docker 34.71% <ø> (ø)
test 37.55% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mnonnenmacher mnonnenmacher merged commit 25515fb into main Apr 30, 2024
21 checks passed
@mnonnenmacher mnonnenmacher deleted the statistics-calculator branch April 30, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants