(items []Condition)
| 72 | } |
| 73 | |
| 74 | func (cc *compositeCondition) init(items []Condition) { |
| 75 | cc.items = append(cc.items, items...) |
| 76 | |
| 77 | for _, item := range items { |
| 78 | handle := item.Changed().Attach(func() { |
| 79 | cc.changedPublisher.Publish() |
| 80 | }) |
| 81 | cc.itemsChangedHandles = append(cc.itemsChangedHandles, handle) |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | func (cc *compositeCondition) satisfied(all bool) bool { |
| 86 | for _, item := range cc.items { |
no test coverage detected