StateExists Checks if state 'state' exists. Returns 'true' if it does, 'false' otherwise.
(state int, at map[int]map[uint8]int)
| 131 | |
| 132 | // StateExists Checks if state 'state' exists. Returns 'true' if it does, 'false' otherwise. |
| 133 | func StateExists(state int, at map[int]map[uint8]int) bool { |
| 134 | _, ok := at[state] |
| 135 | if !ok || state == -1 || at[state] == nil { |
| 136 | return false |
| 137 | } |
| 138 | return true |
| 139 | } |
no outgoing calls
no test coverage detected