()
| 356 | |
| 357 | #[test] |
| 358 | fn block_comment_opaque() { |
| 359 | let segs = segments("SELECT /* <-> */ x"); |
| 360 | assert!( |
| 361 | segs.iter() |
| 362 | .any(|s| matches!(s, SqlSegment::BlockComment(c) if c.contains("<->"))) |
| 363 | ); |
| 364 | for s in &segs { |
| 365 | if let SqlSegment::Text(t) = s { |
| 366 | assert!(!t.contains("<->"), "unexpected <-> in Text: {t}"); |
| 367 | } |
| 368 | } |
| 369 | } |
| 370 | |
| 371 | #[test] |
| 372 | fn nested_block_comment() { |
nothing calls this directly
no test coverage detected