(exp string, got token)
| 436 | } |
| 437 | |
| 438 | func (p *OpenMetricsParser) parseError(exp string, got token) error { |
| 439 | e := min(len(p.l.b), p.l.i+1) |
| 440 | 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]) |
| 441 | } |
| 442 | |
| 443 | // Next advances the parser to the next sample. |
| 444 | // It returns (EntryInvalid, io.EOF) if no samples were read. |
no outgoing calls
no test coverage detected