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

Mutator for default arguments. #2848

Open
Liam-Rougoor opened this issue Feb 16, 2024 · 0 comments · May be fixed by #3024
Open

Mutator for default arguments. #2848

Liam-Rougoor opened this issue Feb 16, 2024 · 0 comments · May be fixed by #3024
Assignees
Labels
Area: Mutator new mutators or change to existing one 🚀 Feature request New feature or request

Comments

@Liam-Rougoor
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Default parameters could not be mutated in the method declaration due to the cause of compile errors. However, since the semantic model was introduced, we could mutate method invocations that make use of default parameters.

Describe the solution you'd like
I'd like to see a mutator that mutates method invocations that use default parameters.

Additional context
An example:

void myMethodWithDefaultParameter(string defaultParam = "Hello Stryker!"){
...
}

When the method is called like this:
myMethodWithDefaultParameter();

I'd expect a mutation like:
myMehodWithDefaultParameter("");

@Liam-Rougoor Liam-Rougoor added the 🚀 Feature request New feature or request label Feb 16, 2024
@Liam-Rougoor Liam-Rougoor self-assigned this Feb 16, 2024
@Liam-Rougoor Liam-Rougoor added the Area: Mutator new mutators or change to existing one label Feb 16, 2024
@Liam-Rougoor Liam-Rougoor linked a pull request Aug 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Mutator new mutators or change to existing one 🚀 Feature request New feature or request
Projects
None yet
1 participant