Skip to content

test: expand fuzz seed corpus and split property harness#3

Draft
laulauland wants to merge 2 commits intomainfrom
lau/drift-fuzz-corpus
Draft

test: expand fuzz seed corpus and split property harness#3
laulauland wants to merge 2 commits intomainfrom
lau/drift-fuzz-corpus

Conversation

@laulauland
Copy link
Member

Summary

  • split the fuzz exploration into an explicit seed corpus and a randomized property harness
  • add richer path/document/code-context generators for anchor parsing and rewriting
  • keep the comment-anchor idempotence fix found during the exploration

Testing

  • zig test fuzz_tests.zig -target aarch64-macos.15.0

Notes

This is a draft exploration PR intended to gather parser data and shape future hardening work.

Tackle:
- define link/unlink/relink round-trip properties
- fuzz inline anchor parsing around markdown/code contexts
- compare property coverage to the current unit/integration matrix
Split the exploratory fuzz work into:
- test/fuzz/corpus_test.zig for explicit seed/regression cases
- test/fuzz/property_test.zig for randomized invariant checks
- test/fuzz/helpers.zig for generators and shared helpers
- fuzz_tests.zig as the standalone harness

The expanded corpus covers:
- richer path and symbol shapes
- mixed markdown/code-context wrappers
- fixed frontmatter/comment relink seeds
- targeted inline rewrite invariants

This keeps known tricky cases readable while still using randomized
properties to widen coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant