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

Correct --integrity-exclude package name matching logic #190

Merged
merged 1 commit into from Feb 11, 2024
Merged

Correct --integrity-exclude package name matching logic #190

merged 1 commit into from Feb 11, 2024

Conversation

ericcornelissen
Copy link
Contributor

Description

Update the matching logic for --integrity-exclude to check the excluded package name against the package identifier used internally. Update the corresponding test suite with more realistic mocking data. Add an extra test case to ensure package names aren't matched partially.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Related Issue

Followup to #188

Motivation and Context

n/a

How Has This Been Tested?

  • Unit testing
    (as seen in the diff)
  • End-to-end testing
    (linked my clone of this project to the project mentioned in #187 and checked that the configuration behaved as expected)

Screenshots (if appropriate):

Checklist:

  • I have updated the documentation (if required).
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I added a picture of a cute animal cause it's fun

docs don't apply; no new cute animal picture, sorry

Update the matching logic for --integrity-exclude to check the exluded package name against the
package identifier used internally. Update the corresponding test suite with more realistic mocking
data. Add an extra test case to ensure package names aren't matched partially.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9c03af3) 98.01% compared to head (8546344) 98.01%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #190   +/-   ##
=======================================
  Coverage   98.01%   98.01%           
=======================================
  Files          13       13           
  Lines         403      403           
  Branches       96       96           
=======================================
  Hits          395      395           
  Misses          8        8           

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

@lirantal lirantal merged commit b374b79 into lirantal:main Feb 11, 2024
4 checks passed
@ericcornelissen ericcornelissen deleted the 187-integrity-exclude-patch branch February 11, 2024 16:05
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

3 participants