You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to differ from the other mutators such as ListMutator or ArrayMutator which use the given min and max values as is, and instead only perform validation using require(...).
Is it intended that MapMutator differs here in behavior? For consistency, would it make sense to use require here as well to impose restrictions (at least for the minSize)?
require(minSize == 0, "@WithSize#min != 0 is not yet supported for Map");
but the clamping of maxSize does not serve purpose that I can find. Without clamping maxSize it should be possible to mutate maps with more than DEFAULT_MAX_SIZE elements.
Activity
fix: support maxSize > 1000 in map mutator
simonresch commentedon Oct 15, 2025
I don't see any reason why the
MapMutatatorshould be treated differently. TheminSizeparameter is currently not being usedjazzer/src/main/java/com/code_intelligence/jazzer/mutation/mutator/collection/MapMutatorFactory.java
Line 107 in e13aef0
but the clamping of
maxSizedoes not serve purpose that I can find. Without clampingmaxSizeit should be possible to mutate maps with more thanDEFAULT_MAX_SIZEelements.fix: support maxSize > 1000 in map mutator
fix: support maxSize > 1000 in map mutator