mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 05:18:52 +08:00
565524ed3c
Signed-off-by: yah01 <yang.cen@zilliz.com>
18 lines
242 B
Go
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
|
|
}
|