Skip to content

Commit d08caec

Browse files
s5dsn-eqeeclaude
andauthored
Docs: Require a fuzz seed per bug fix in AGENTS.md (#2690)
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
1 parent d32825d commit d08caec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- Cover both positive and negative cases: valid input parses and round-trips, invalid input fails with the expected error.
2222
- Cover every dialect the syntax is relevant to, e.g. via `all_dialects_where(...)`.
2323
- When adding new syntax, run the fuzzer to check for panics (see `docs/fuzzing.md`).
24+
- When fixing a bug, add one seed file to `fuzz/fuzz_seeds/`, as small as still triggers the original path. Name it `<dialect>_<issue>_<topic>.sql`. For a fix with no issue, use the PR number.
2425
- When testing a multi-line SQL statement, use a raw string literal, i.e. `r#"..."#` to preserve formatting.
2526
- The parser builds an abstract syntax tree (AST) from the SQL statement and has functionality to display the tree as SQL. Use the following template for simple unit tests where you expect the SQL created from the AST to be the same as the input SQL:
2627
```rust

0 commit comments

Comments
 (0)