mirror of
https://github.com/rclone/rclone.git
synced 2025-08-13 23:38:51 +02:00
operations: make ReOpen and NewReOpen public for re-use elsewhere
This commit is contained in:
@ -15,7 +15,7 @@ import (
|
||||
)
|
||||
|
||||
// check interface
|
||||
var _ io.ReadCloser = (*reOpen)(nil)
|
||||
var _ io.ReadCloser = (*ReOpen)(nil)
|
||||
|
||||
var errorTestError = errors.New("test error")
|
||||
|
||||
@ -74,7 +74,7 @@ func TestReOpen(t *testing.T) {
|
||||
breaks: breaks,
|
||||
}
|
||||
hashOption := &fs.HashesOption{Hashes: hash.NewHashSet(hash.MD5)}
|
||||
return newReOpen(context.Background(), src, hashOption, rangeOption, maxRetries)
|
||||
return NewReOpen(context.Background(), src, hashOption, rangeOption, maxRetries)
|
||||
}
|
||||
|
||||
t.Run("Basics", func(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user