Commit fb3f277
committed
test: cover explicit empty else merge flow
Symptom: the PR regression test used an empty ElseBody without marking that the source contained an explicit ELSE token.
Root cause: the empty-ELSE builder fix depends on IfStmt.HasElse, introduced by the custom error-handler routing branch, to distinguish a missing ELSE from an explicitly empty ELSE.
Fix: stack this branch on the HasElse change and set HasElse in the regression test so it exercises the explicit empty-ELSE path.
Tests: go test ./mdl/executor -run TestIfEmptyElseBodyWithContinuingThenEmitsFalseFlowToMerge -v; make build; make test; make lint-go.1 parent 4deb554 commit fb3f277
1 file changed
Lines changed: 3 additions & 3 deletions
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments