Skip to content

Fuzz testing #69

@weihanglo

Description

@weihanglo

diffy is a parser, so fuzzing is a reasonable test infra. See weihanglo#39 for some reference.

  • patch_from_strPatch::from_str()
  • patch_from_bytesPatch::from_bytes()
  • patch_set_gitdiffPatchSet::parse(..., gitdiff())
  • patch_set_unidiffPatchSet::parse(..., unidiff())
  • patch_set_binaryPatchSet::parse(..., gitdiff() with binary enabled
  • roundtripcreate_patch(a, b) |> to_string |> from_str |> apply(a) == b
  • roundtrip_bytes — same as above but with bytes variants
  • mergemerge(ancestor, ours, theirs) never panics
  • merge_bytes — same as above but with bytes variants
  • Seed some corpus from replay test real-world repos

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions