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

Mutation operator for methods returning classes with a default constructor #39

Open
oscarlvp opened this issue Dec 4, 2017 · 3 comments

Comments

@oscarlvp
Copy link
Member

oscarlvp commented Dec 4, 2017

Create a mutation operator that generates code for methods that return an instance of a class having a default constructor (with no parameters).

@oscarlvp
Copy link
Member Author

oscarlvp commented Apr 13, 2018

This may create equivalent mutants in many cases. If implemented it shouldn't be active by default.

@oscarlvp
Copy link
Member Author

This is being partially implemented in pull request #94
The implementation in the pull request concerns only classes which are in the classpath of the PIT execution.
A difference could be to also allow classes which are in the project and not necessarily in the classpath of PIT.

@oscarlvp
Copy link
Member Author

oscarlvp commented Aug 20, 2019

#94 was merged with 956a55c
The issue remains open to check if we can:

  • obtain information from the classpath of the project and check if these classes have constructors without parameters
  • detect methods that return an instance of a class by invoking the default constructor, these can become stop methods for this operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant