milvus/internal/util/mock/io_fake.go
yah01 565524ed3c
Add zstd compressor in util (#15779)
Signed-off-by: yah01 <yang.cen@zilliz.com>
2022-03-08 18:17:58 +08:00

18 lines
242 B
Go

package mock
type ErrReader struct {
Err error
}
func (r *ErrReader) Read(p []byte) (n int, err error) {
return 0, r.Err
}
type ErrWriter struct {
Err error
}
func (w *ErrWriter) Write(p []byte) (n int, err error) {
return 0, w.Err
}