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

FEAT: Filter duplicate messages #839

Merged
merged 4 commits into from
Mar 16, 2023
Merged

FEAT: Filter duplicate messages #839

merged 4 commits into from
Mar 16, 2023

Conversation

carlwilson
Copy link
Member

  • Message classes made hash/equals safe, for use in HashSet;
  • RepInfo now uses a HashSet to store messages and returns a derived list;
  • removed line left in target script by mistake; and
  • added comments to target script.

- Message classes made hash/equals safe, for use in HashSet;
- RepInfo now uses a HashSet to store messages and returns a derived list;
- removed line left in target script by mistake; and
- added comments to target script.
@carlwilson carlwilson self-assigned this Mar 16, 2023
@carlwilson carlwilson added this to the JHOVE 1.28 milestone Mar 16, 2023
- error messages have no duplicates and are sorted by offset;
- fixed a couple of issues with constructor calling to make message hash safe and ensure that severities are reported;
- removed `Message` class constructors for consistent instantiation;
- hash/equals safety tests for `Message` class; and
- copied test files for issues where the number/sorting of issues has changed.
FIX: Duplicate error removal issues
@codecov
Copy link

codecov bot commented Mar 16, 2023

Codecov Report

Patch coverage: 93.33% and project coverage change: +0.16 🎉

Comparison is base (dc26346) 46.87% compared to head (8d46131) 47.04%.

Additional details and impacted files
@@                Coverage Diff                @@
##             integration     #839      +/-   ##
=================================================
+ Coverage          46.87%   47.04%   +0.16%     
- Complexity          1083     1097      +14     
=================================================
  Files                 57       57              
  Lines               9050     9079      +29     
  Branches            1607     1622      +15     
=================================================
+ Hits                4242     4271      +29     
  Misses              4274     4274              
  Partials             534      534              
Impacted Files Coverage Δ
...c/main/java/edu/harvard/hul/ois/jhove/RepInfo.java 55.63% <66.66%> (+1.02%) ⬆️
...c/main/java/edu/harvard/hul/ois/jhove/Message.java 97.77% <97.67%> (+3.66%) ⬆️
...n/java/edu/harvard/hul/ois/jhove/ErrorMessage.java 100.00% <100.00%> (ø)
...in/java/edu/harvard/hul/ois/jhove/InfoMessage.java 100.00% <100.00%> (ø)

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 in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@carlwilson carlwilson merged commit dbd0a5d into integration Mar 16, 2023
@carlwilson carlwilson deleted the feat/dupe-errors branch June 14, 2023 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant