MCPcopy Create free account
hub / github.com/prometheus/common / Error

Method Error

expfmt/text_parse.go:47–49  ·  view source on GitHub ↗

Error implements the error interface.

()

Source from the content-addressed store, hash-verified

45
46// Error implements the error interface.
47func (e ParseError) Error() string {
48 return fmt.Sprintf("text format parsing error in line %d: %s", e.Line, e.Msg)
49}
50
51// TextParser is used to parse the simple and flat text-based exchange format.
52//

Callers 15

TestUnmarshallLevelFunction · 0.80
TestUnmarshallEmptyLevelFunction · 0.80
TestUnmarshallBadLevelFunction · 0.80
TestMatcherValidateFunction · 0.80
TestSilenceValidateFunction · 0.80
TestSampleHistogramJSONFunction · 0.80
TestVectorHistogramJSONFunction · 0.80
TestMatrixHistogramJSONFunction · 0.80
TestScalarJSONFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestUnmarshallLevelFunction · 0.64
TestUnmarshallEmptyLevelFunction · 0.64
TestUnmarshallBadLevelFunction · 0.64
TestMatcherValidateFunction · 0.64
TestSilenceValidateFunction · 0.64
TestSampleHistogramJSONFunction · 0.64
TestVectorHistogramJSONFunction · 0.64
TestMatrixHistogramJSONFunction · 0.64
TestScalarJSONFunction · 0.64