mirror of
https://github.com/rclone/rclone.git
synced 2024-12-19 01:03:42 +08:00
21 lines
389 B
Go
21 lines
389 B
Go
|
package chunkedreader
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
_ "github.com/rclone/rclone/backend/local"
|
||
|
"github.com/rclone/rclone/fstest/mockobject"
|
||
|
)
|
||
|
|
||
|
func TestSequential(t *testing.T) {
|
||
|
content := makeContent(t, 1024)
|
||
|
|
||
|
for _, mode := range mockobject.SeekModes {
|
||
|
t.Run(mode.String(), testRead(content, mode, 0))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func TestSequentialErrorAfterClose(t *testing.T) {
|
||
|
testErrorAfterClose(t, 0)
|
||
|
}
|