MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / block_comment_opaque

Function block_comment_opaque

nodedb-sql/src/parser/preprocess/lex.rs:358–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

segmentsFunction · 0.85

Tested by

no test coverage detected