MCPcopy Create free account
hub / github.com/coooodeer/parse-rust / test_deeply_nested_fields_parse

Function test_deeply_nested_fields_parse

tests/test_security_inputs.py:202–211  ·  view source on GitHub ↗

Deep nested fields must parse correctly.

()

Source from the content-addressed store, hash-verified

200
201
202def test_deeply_nested_fields_parse():
203 """Deep nested fields must parse correctly."""
204 key_path = "[" + "][".join(f'"{p}"' for p in [f"l{i}" for i in range(NESTING_DEPTH)]) + "]"
205 fmt = f"{{{key_path}}}"
206
207 def run():
208 r = parse(fmt, "value")
209 return r is not None
210 result = _check_no_crash(run)
211 assert result is True
212
213
214# ══════════════════════════════════════════════════════════════════════

Callers

nothing calls this directly

Calls 1

_check_no_crashFunction · 0.85

Tested by

no test coverage detected