Commit 945a6cb
committed
tests(cli/search): Add test for invalid regex pattern error
Add test_compile_search_patterns_invalid_regex_raises to verify that
compile_search_patterns() raises re.error when given an invalid regex
pattern like "[invalid(".
This ensures the re.error exception handling path in command_search()
is properly tested.1 parent 1c62752 commit 945a6cb
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
348 | 355 | | |
349 | 356 | | |
350 | 357 | | |
| |||
0 commit comments