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

Function parse_for_loop

nodedb/src/control/planner/procedural/parser/mod.rs:141–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139
140 #[test]
141 fn parse_for_loop() {
142 let block = parse_block("BEGIN FOR i IN 1..10 LOOP BREAK; END LOOP; END").unwrap();
143 let Statement::For {
144 var, reverse, body, ..
145 } = &block.statements[0]
146 else {
147 panic!("expected For");
148 };
149 assert_eq!(var, "i");
150 assert!(!reverse);
151 assert_eq!(body.len(), 1);
152 }
153
154 #[test]
155 fn parse_sql_detected() {

Callers

nothing calls this directly

Calls 1

parse_blockFunction · 0.85

Tested by

no test coverage detected