()
| 52 | } |
| 53 | |
| 54 | func (ctx *context) maxSlotActionIndex() (maxIndex int) { |
| 55 | for _, m := range ctx.slots { |
| 56 | if m.Action.State != models.ActionNothing { |
| 57 | maxIndex = math2.MaxInt(maxIndex, m.Action.Index) |
| 58 | } |
| 59 | } |
| 60 | return maxIndex |
| 61 | } |
| 62 | |
| 63 | func (ctx *context) isSlotLocked(m *models.SlotMapping) bool { |
| 64 | switch m.Action.State { |
no outgoing calls
no test coverage detected