mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 16:22:47 +02:00
vfs: add tests and subsequent fixes
* Tests for VFS layer * Small fixes found during testing * Fix Close, Flush and Release behaviour for ReadFileHandle and WriteFileHandle * Fix nil object bugs on File
This commit is contained in:
13
vfs/errors_test.go
Normal file
13
vfs/errors_test.go
Normal file
@ -0,0 +1,13 @@
|
||||
package vfs
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestErrorError(t *testing.T) {
|
||||
assert.Equal(t, "Success", OK.Error())
|
||||
assert.Equal(t, "Function not implemented", ENOSYS.Error())
|
||||
assert.Equal(t, "Low level error 99", Error(99).Error())
|
||||
}
|
Reference in New Issue
Block a user