(f func(c *Card) bool)
| 172 | var tested = map[*Card]bool{} |
| 173 | |
| 174 | func (s *Stack) ForEachInTail(f func(c *Card) bool) { |
| 175 | |
| 176 | below := s.Below |
| 177 | clear(tested) |
| 178 | for below != nil { |
| 179 | if !f(below) { |
| 180 | return |
| 181 | } |
| 182 | if _, exists := tested[below]; exists { |
| 183 | break |
| 184 | } |
| 185 | tested[below] = true |
| 186 | below = below.Stack.Below |
| 187 | } |
| 188 | |
| 189 | } |
| 190 | |
| 191 | func (stack *Stack) Children() []*Card { |
| 192 | children := []*Card{} |
no outgoing calls
no test coverage detected