(exp string, got token)
| 291 | } |
| 292 | |
| 293 | func (p *PromParser) parseError(exp string, got token) error { |
| 294 | e := min(len(p.l.b), p.l.i+1) |
| 295 | return fmt.Errorf("%s, got %q (%q) while parsing: %q", exp, p.l.b[p.l.start:e], got, p.l.b[p.start:e]) |
| 296 | } |
| 297 | |
| 298 | // Next advances the parser to the next sample. |
| 299 | // It returns (EntryInvalid, io.EOF) if no samples were read. |
no outgoing calls
no test coverage detected