()
| 370 | |
| 371 | #[test] |
| 372 | fn nested_block_comment() { |
| 373 | let segs = segments("SELECT /* /* nested */ <-> */ x"); |
| 374 | // The outer `/* ... */` includes everything including `<->`. |
| 375 | assert!( |
| 376 | segs.iter() |
| 377 | .any(|s| matches!(s, SqlSegment::BlockComment(c) if c.contains("<->"))) |
| 378 | ); |
| 379 | for s in &segs { |
| 380 | if let SqlSegment::Text(t) = s { |
| 381 | assert!(!t.contains("<->"), "nested <-> leaked into Text: {t}"); |
| 382 | } |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | #[test] |
| 387 | fn doubled_quote_escape_in_string() { |
nothing calls this directly
no test coverage detected