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