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

Function parse_while_loop

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

Source from the content-addressed store, hash-verified

132
133 #[test]
134 fn parse_while_loop() {
135 let block = parse_block("BEGIN WHILE i < 10 LOOP i := i + 1; END LOOP; END").unwrap();
136 assert_eq!(block.statements.len(), 1);
137 assert!(matches!(&block.statements[0], Statement::While { .. }));
138 }
139
140 #[test]
141 fn parse_for_loop() {

Callers

nothing calls this directly

Calls 1

parse_blockFunction · 0.85

Tested by

no test coverage detected