Update: The mutation coverage failure went away since this question was posted, probably due to a bugfix in pit?
So this question is invalid now. I don't know what to do in this case. Delete the question? Leave it here?
I am using pit for mutation testing. There is a zombie in a very simple function:
public boolean isAuthenticated() {
return true;
}
It is tested with:
assertEquals(true, isAuthenticated());
But I get the error replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED
I did try to check the identity with System.identityHashCode(), but that did not help.
Are there any way to kill this zombie? If not, how can I turn off this particular check for booleans or this particular line of code?