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

locator: correctly reject patches adding a file for non-empty files #67

Merged
merged 2 commits into from
Feb 3, 2024

Conversation

shannonbooth
Copy link
Owner

This corrects the actual logic needed to fix the:
applier_add_file_but_file_already_exits_with_conflicts test.

We just need to also add an informational message about when this case
is detected.

We were not correctly considering the case that the old file was empty.
To fix this, use the same logic as what is used in the locator to
determine the expected file location when printing this information.
This corrects the actual logic needed to fix the:
`applier_add_file_but_file_already_exits_with_conflicts` test.

We just need to also add an informational message about when this case
is detected.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f9e893c) 89.71% compared to head (6353a27) 89.72%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
+ Coverage   89.71%   89.72%   +0.01%     
==========================================
  Files          19       19              
  Lines        2033     2035       +2     
  Branches      872      873       +1     
==========================================
+ Hits         1824     1826       +2     
  Misses         77       77              
  Partials      132      132              

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

@shannonbooth shannonbooth merged commit f140e66 into main Feb 3, 2024
11 of 12 checks passed
@shannonbooth shannonbooth deleted the fixes branch February 3, 2024 02:38
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.

2 participants