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

[BUGFIX] Correctly remove twig file extension with target file given #397

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

eliashaeussler
Copy link
Member

This PR fixes an edge-case issue with TemplateWriter: If a target file with .twig file extension was given, it was not removed. This only happened if the target file was calculated from the given source file. The appropriate test case did not catch this case, because it was not created from a realistic scenario. It is now fixed as well.

Resolves: #392

@eliashaeussler eliashaeussler added the bug Something isn't working label Nov 29, 2023
@eliashaeussler eliashaeussler self-assigned this Nov 29, 2023
Copy link

codeclimate bot commented Nov 29, 2023

Code Climate has analyzed commit 7a513b3 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 96.4% (0.0% change).

View more on Code Climate.

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8ec1064) 96.48% compared to head (7a513b3) 96.48%.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #397   +/-   ##
==========================================
  Coverage      96.48%   96.48%           
  Complexity       699      699           
==========================================
  Files            101      101           
  Lines           2217     2217           
==========================================
  Hits            2139     2139           
  Misses            78       78           

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

@eliashaeussler eliashaeussler merged commit 785bef3 into develop Nov 29, 2023
42 checks passed
@eliashaeussler eliashaeussler deleted the fix/target-template-suffix branch November 29, 2023 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant