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

Fix filename as tag bug #2393

Merged
merged 1 commit into from
Mar 18, 2022
Merged

Conversation

boing102
Copy link

Description

When a test file isn't provided with "/" in the path, the filename isn't registered as a tag.
Fixing by providing a condition for this edge case.

This is the first time I'm contributing to this project (trying to learn c++). I wasn't sure where to add a test for this change, so would appreciated if someone could point to place.

GitHub Issues

This PR fixes #2328

When a test file isn't provided with "/" in the path,
the filename isn't registered as a tag.
Fixing by providing a conditon for this edge case.

Closes catchorg#2328
@codecov
Copy link

codecov bot commented Mar 17, 2022

Codecov Report

Merging #2393 (a35d523) into v2.x (ff151d2) will decrease coverage by 0.02%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             v2.x    #2393      +/-   ##
==========================================
- Coverage   90.10%   90.08%   -0.02%     
==========================================
  Files         113      113              
  Lines        5038     5040       +2     
==========================================
+ Hits         4539     4540       +1     
- Misses        499      500       +1     

@horenmar
Copy link
Member

Thanks. As the code currently is, it is pretty much impossible to write a test -- the function that trims out the filename would have to be split into its own header, and then the tests could be written.

Given that this change is only relevant to v2 branch, I don't think this is worth the effort.

@horenmar horenmar merged commit 0aa4dba into catchorg:v2.x Mar 18, 2022
@boing102 boing102 deleted the missing-filename-tag branch March 20, 2022 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants