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

Function test_search_on_empty_string

tests/test_security_inputs.py:379–383  ·  view source on GitHub ↗

search on empty string must return None, not crash.

()

Source from the content-addressed store, hash-verified

377# ══════════════════════════════════════════════════════════════════════
378
379def test_search_on_empty_string():
380 """search on empty string must return None, not crash."""
381 def run():
382 return search("{}", "")
383 assert _check_no_crash(run) is None
384
385
386def test_findall_on_empty_string():

Callers

nothing calls this directly

Calls 1

_check_no_crashFunction · 0.85

Tested by

no test coverage detected