MCPcopy
hub / github.com/elastic/go-elasticsearch / errEncoder

Struct errEncoder

esutil/json_reader_internal_test.go:45–45  ·  esutil/json_reader_internal_test.go::errEncoder

errEncoder is a JSONEncoder that always returns an error, used to test encode-error paths.

Source from the content-addressed store, hash-verified

43// errEncoder is a JSONEncoder that always returns an error, used to test
44// encode-error paths.
45type errEncoder struct{}
46
47func (errEncoder) EncodeJSON(_ io.Writer) error {
48 return errors.New("MOCK ERROR")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected