MCPcopy Index your code
hub / github.com/prometheus/prometheus / parseError

Method parseError

model/textparse/promparse.go:293–296  ·  view source on GitHub ↗
(exp string, got token)

Source from the content-addressed store, hash-verified

291}
292
293func (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.

Callers 3

NextMethod · 0.95
parseLValsMethod · 0.95
parseMetricSuffixMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected