Skip to content

Improve Character default mutator neighborhood exploration#58

Open
Abhishek21g wants to merge 1 commit into
doordash-oss:mainfrom
Abhishek21g:fix/character-mutator-neighborhood
Open

Improve Character default mutator neighborhood exploration#58
Abhishek21g wants to merge 1 commit into
doordash-oss:mainfrom
Abhishek21g:fix/character-mutator-neighborhood

Conversation

@Abhishek21g

Copy link
Copy Markdown

Summary

Fixes #48.

Character.defaultMutator.mutate previously only returned one of 8 hard-coded seeds, ignoring the input. Mutation now builds a non-identity candidate set (scalar ±1, case flip, class-local adjacency, generate-pool jumps, plus seeds) and picks uniformly — matching the PortMutator / EmptyStringMutator pattern.

Verification

  • Added characterDefaultMutatorReachesBeyondSeeds in SingleValueMutatorTests
  • Local full swift test is blocked by package-benchmark/jemalloc on stock Xcode; please run the suite / filtered mutator tests in CI

Notes

Mutator source lives under Sources/FuzzCore/... (issue path cited PropertyTestingKit/).

mutate previously only jumped among 8 hard-coded seeds. Build a
non-identity candidate set with scalar ±1, case flip, class-local
adjacency, and generate-pool jumps so coverage-guided search can take
small steps and reach beyond the seed set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Improve the Character default mutator: mutate only reaches 8 fixed seeds

1 participant