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

Method Is

storage/interface_append.go:114–119  ·  view source on GitHub ↗

Is implements method that's expected by errors.Is.

(target error)

Source from the content-addressed store, hash-verified

112
113// Is implements method that's expected by errors.Is.
114func (*AppendPartialError) Is(target error) bool {
115 // This does not need to handle wrapped errors as AppendPartialError.Is should be used
116 // via errors.Is.
117 _, ok := target.(*AppendPartialError)
118 return ok
119}
120
121// Handle handles the given err that may be an AppendPartialError.
122// If the err is nil or not an AppendPartialError it returns err.

Callers 15

NextMethod · 0.45
AppendMethod · 0.45
appendExemplarsMethod · 0.45
AddExemplarMethod · 0.45
InitMethod · 0.45
loadWALMethod · 0.45
ChunkSnapshotMethod · 0.45
loadChunkSnapshotMethod · 0.45
AppendMethod · 0.45
AppendExemplarMethod · 0.45
AppendHistogramMethod · 0.45

Calls

no outgoing calls

Tested by 15

BenchmarkIteratorFunction · 0.36
assertCheckpointExistsFunction · 0.36
testParseFunction · 0.36
benchParseFunction · 0.36
benchExpFmtFunction · 0.36
TestStreamReadEndpointFunction · 0.36
TestPromTextToProtoFunction · 0.36