ruff/crates/ruff_python_ast_integration_tests
Dhruv Manilawala 62c7d8f6ba
[red-knot] Add control flow support for match statement (#13241)
## Summary

This PR adds support for control flow for match statement.

It also adds the necessary infrastructure required for narrowing
constraints in case blocks and implements the logic for
`PatternMatchSingleton` which is either `None` / `True` / `False`. Even
after this the inferred type doesn't get simplified completely, there's
a TODO for that in the test code.

## Test Plan

Add test cases for control flow for (a) when there's a wildcard pattern
and (b) when there isn't. There's also a test case to verify the
narrowing logic.

---------

Co-authored-by: Carl Meyer <carl@astral.sh>
2024-09-10 02:14:19 +05:30
..
src Remove cyclic dev dependency with the parser crate (#11261) 2024-05-07 09:24:57 +00:00
tests [red-knot] Add control flow support for match statement (#13241) 2024-09-10 02:14:19 +05:30
Cargo.toml Move sub-crates to workspace dependencies (#11407) 2024-05-13 14:37:50 +00:00
README.md Remove cyclic dev dependency with the parser crate (#11261) 2024-05-07 09:24:57 +00:00

Integration tests for ruff_python_ast

This crate includes integration tests for the ruff_python_ast crate.

The reason for having a separate crate is to avoid introducing a dev circular dependency between the ruff_python_parser crate and the ruff_python_ast crate.

This crate shouldn't include any code, only tests.

Reference: