MCPcopy Index your code
hub / github.com/containerd/containerd / Error

Method Error

pkg/filters/parser.go:272–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270}
271
272func (pe parseError) Error() string {
273 if pe.pos < len(pe.input) {
274 before := pe.input[:pe.pos]
275 location := pe.input[pe.pos : pe.pos+1] // need to handle end
276 after := pe.input[pe.pos+1:]
277
278 return fmt.Sprintf("[%s >|%s|< %s]: %v", before, location, after, pe.msg)
279 }
280
281 return fmt.Sprintf("[%s]: %v", pe.input, pe.msg)
282}
283
284func (p *parser) mkerr(pos int, format string, args ...any) error {
285 return fmt.Errorf("parse error: %w", parseError{

Callers 15

TestSourceDateEpochFunction · 0.45
SupportsPidFDFunction · 0.45
TestParseReleaseFunction · 0.45
processQueueMethod · 0.45
reapFunction · 0.45
TestGenerateSpecFunction · 0.45
TestSpecWithTTYFunction · 0.45
TestWithCapabilitiesFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestSourceDateEpochFunction · 0.36
TestParseReleaseFunction · 0.36
TestGenerateSpecFunction · 0.36
TestSpecWithTTYFunction · 0.36
TestWithCapabilitiesFunction · 0.36
TestWithPrivilegedFunction · 0.36