-
Notifications
You must be signed in to change notification settings - Fork 74
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
Patch reporter #911
Patch reporter #911
Conversation
This reporter is available as `Patches`. It generates a patch for each mutant.
Suggestion: use |
Thank you so much for bringing this up! This is certainly a great start! Could you add some test cases for some mutation operators? In particular, the interesting operators are The other important one is
What is the base directory in this context? |
Ok, will do i can add some sample files, too. Base path means the Path the patch should be relative to. For now it is absolute. |
The test should use simply Google test or is there another way these check should be done? |
There are integration tests based on LLVM lit and filecheck under |
Oh, and the git root sounds good as a base path! |
I decided to use the git path as fallback for |
Just played around with it locally and it looks pretty good! All in all, looks good and I'm happy to merge unless you want to add something :) |
Feel free to merge. Also feel free to send me examples of what’s not working an I will have a look at it. |
void foo(...);
///
foo(a,
b); and I guess void foo();
void bar();
///
foo(); bar(); will also be incorrect. All in all, there is no straightforward way to handle this at the moment: we need to attach certain metadata to some mutation points. |
@AlexDenisov I tried the The multiline does not work, that's sadly true, fix is here: #913 the third example works just fine. |
Solves #587
Hope this helps to get closet to V1.0 (#775)