Commit caeccbd
fix(model): simplify Config.ParentKey condition; add propagation test
- Restructure the ErrMultipleParents guard from a double-negative into a
positive if/else — same semantics, more readable at a glance
- Add TestConfig_ParentKey_MultipleParentsPropagatesForNonVariables: uses
two SchedulerForRelation entries (whose checkDefinedOn has no component-ID
guard) to verify that ErrMultipleParents is propagated for non-variables
component types, preventing future refactors from accidentally widening
the fallback
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2f1a01c commit caeccbd
2 files changed
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
606 | 610 | | |
607 | 611 | | |
608 | | - | |
609 | | - | |
| 612 | + | |
610 | 613 | | |
611 | 614 | | |
612 | 615 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
112 | 129 | | |
113 | 130 | | |
114 | 131 | | |
| |||
0 commit comments