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

model: Move ScanResultContainer to FileBasedStorage #5935

Merged
merged 3 commits into from
Oct 11, 2022

Conversation

fviernau
Copy link
Member

@fviernau fviernau commented Oct 11, 2022

Move ScanResultContainer to the only place where it's being used.

Part of #5681.

The class does not have any custom (de-)serializer, so testing
(de-)serialization is not necessary.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
Implementing that interface is not needed and `compareTo` is currently
unused.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
The only use of `ScanResultContainer` is within `FileBasedStorage`. So,
hide it there as an implementation detail.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
@codecov
Copy link

codecov bot commented Oct 11, 2022

Codecov Report

Base: 58.42% // Head: 58.52% // Increases project coverage by +0.09% 🎉

Coverage data is based on head (f050ff2) compared to base (2fcaa05).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5935      +/-   ##
============================================
+ Coverage     58.42%   58.52%   +0.09%     
  Complexity     2090     2090              
============================================
  Files           321      321              
  Lines         18684    18672      -12     
  Branches       3779     3775       -4     
============================================
+ Hits          10916    10927      +11     
+ Misses         6686     6662      -24     
- Partials       1082     1083       +1     
Flag Coverage Δ
funTest-analyzer-docker 74.96% <ø> (ø)
funTest-non-analyzer 50.42% <100.00%> (+0.05%) ⬆️
test 27.34% <0.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...anner/src/main/kotlin/storages/FileBasedStorage.kt 63.15% <100.00%> (+3.15%) ⬆️
.../curation/ClearlyDefinedPackageCurationProvider.kt 48.80% <0.00%> (+2.38%) ⬆️
...ain/kotlin/provenance/PackageProvenanceResolver.kt 66.05% <0.00%> (+12.82%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@fviernau fviernau merged commit 56f8d27 into main Oct 11, 2022
@fviernau fviernau deleted the model-move-scan-result-container branch October 11, 2022 10:18
@sschuberth sschuberth added the release notes Changes that should be mentioned in release notes label Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes Changes that should be mentioned in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants