Commit c22a78d
committed
test: Add word-boundary and leading-whitespace tests for PRAGMA detection
Mirror the existing test_not_select_if_part_of_word / test_not_cte_if_part_of_word
and test_explain_with_whitespace patterns for the PRAGMA branch of should_use_query:
- test_not_pragma_if_part_of_word: asserts that "PRAGMATIC" and similar strings
do NOT match, confirming the word-boundary guard is enforced.
- test_pragma_with_whitespace: asserts that leading spaces, tabs, and newlines
before PRAGMA are correctly skipped by skip_whitespace_and_comments.1 parent a5f79ce commit c22a78d
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
273 | 288 | | |
274 | 289 | | |
275 | 290 | | |
| |||
0 commit comments