mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +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
|
|
}
|