aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/loop_test.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/aflow: add Flow.Consts instead of ProvideDmitry Vyukov3 days1-38/+33
| | | | | | | | | There is no point in using Provide more than once, and anywhere besides the first action of a flow. So it's not really an action, but more of a flow property. Add Flow.Consts field to handle this case better. Also provide slightly less verbose syntax by using a map instead of a struct, and add tests.
* pkg/aflow: add explicit DoWhile.MaxIterationsDmitry Vyukov2026-01-271-2/+32
| | | | | | Add DoWhile.MaxIterations and make it mandatory. I think it's useful to make workflow implementer to think explicitly about a reasonable cap on the number of iterations.
* pkg/aflow: add DoWhile loop actionDmitry Vyukov2026-01-241-0/+96
DoWhile represents "do { body } while (cond)" loop. See added test for an example.