An empty input string with non-empty format must return None.
()
| 258 | |
| 259 | |
| 260 | def 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 | |
| 268 | def test_whitespace_only_format(): |
nothing calls this directly
no test coverage detected