Dryrun Example
This example demonstrates the dryrun functionality in GXL.
#![allow(unused)] fn main() { mod main { env default {} flow _step1 { gx.echo ("step1"); } #[dryrun(_step3)] flow _step2 { gx.echo ("step2"); gx.assert ( value : "true" , expect : "false" ); } flow _step3 { gx.echo ("dryrun setp2"); } flow start | _step1 | _step2 ; } }
graph TD
A[Start] --> B[Load main module]
B --> C[Execute start flow]
C --> D[Execute _step1 flow]
D --> E[Execute _step2 flow]
E --> F{Assertion fails?}
F -->|Yes| G[Execute _step3 flow]
F -->|No| H[End]
G --> I[End]