MCPcopy Create free account
hub / github.com/astral-sh/ruff / nested_parens_grow_stack

Function nested_parens_grow_stack

crates/ruff_python_parser/src/parser/tests.rs:382–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

380
381 #[test]
382 fn nested_parens_grow_stack() {
383 let src = format!("{}1{}", "(".repeat(1_000), ")".repeat(1_000));
384 let parsed = stacker::grow(32 * 1024, || parse_module(&src));
385 assert!(parsed.is_ok());
386 }
387
388 #[test]
389 fn deep_nesting_preserves_surrounding_statements() {

Callers

nothing calls this directly

Calls 1

parse_moduleFunction · 0.85

Tested by

no test coverage detected