Skip to content

Commit be39051

Browse files
authored
Merge pull request #22086 from asgerf/asgerf-unified-corpus-test-split
Unified: Split up corpus tests and their generated outputs
2 parents 8447b76 + 28f0be5 commit be39051

205 files changed

Lines changed: 5352 additions & 5626 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

unified/AGENTS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ This is a CodeQL extractor based on tree-sitter.
1919

2020
- To run tests for the parser and mapping, run `cargo test` in the `extractor` directory.
2121

22-
- Do not edit the printed ASTs in `extractor/test/corpus` directly. To regenerate the ASTs, run `scripts/update-corpus.sh`.
22+
- Extractor test cases are located at `extractor/tests/corpus/swift/*/*.swift`.
23+
24+
- Each test case has a corresponding `.output` file containing its generated output along with a copy of the test case itself.
25+
26+
- Check the output files for correctness but do not edit them manually. Regenerate them with `scripts/update-corpus.sh`.
2327

2428
## CodeQL Testing
2529
- If you changed the extractor code, always rebuild it before running CodeQL tests.

unified/extractor/tests/corpus/swift/closures.txt

Lines changed: 0 additions & 377 deletions
This file was deleted.

0 commit comments

Comments
 (0)