(next string)
| 209 | } |
| 210 | |
| 211 | func (s *sshLexer) follow(next string) bool { |
| 212 | inputIdx := s.inputIdx |
| 213 | for _, expectedRune := range next { |
| 214 | if inputIdx >= len(s.input) { |
| 215 | return false |
| 216 | } |
| 217 | r := s.input[inputIdx] |
| 218 | inputIdx++ |
| 219 | if expectedRune != r { |
| 220 | return false |
| 221 | } |
| 222 | } |
| 223 | return true |
| 224 | } |
| 225 | |
| 226 | func (s *sshLexer) run() { |
| 227 | for state := s.lexVoid; state != nil; { |
no outgoing calls
no test coverage detected