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

Function test_empty_input_string

tests/test_security_inputs.py:260–265  ·  view source on GitHub ↗

An empty input string with non-empty format must return None.

()

Source from the content-addressed store, hash-verified

258
259
260def test_empty_input_string():
261 """An empty input string with non-empty format must return None."""
262 def run():
263 r = parse("hello {}", "")
264 return r # expected None
265 assert _check_no_crash(run) is None
266
267
268def test_whitespace_only_format():

Callers

nothing calls this directly

Calls 1

_check_no_crashFunction · 0.85

Tested by

no test coverage detected