mirror of
https://github.com/rclone/rclone.git
synced 2025-08-10 14:17:58 +02:00
vfs: log size of File and Dir in tests for optimization
This commit is contained in:
@ -7,6 +7,7 @@ import (
|
||||
"sort"
|
||||
"testing"
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/rclone/rclone/fs"
|
||||
"github.com/rclone/rclone/fs/operations"
|
||||
@ -577,3 +578,7 @@ func TestDirRename(t *testing.T) {
|
||||
err = dir.Rename("potato", "tuba", dir)
|
||||
assert.Equal(t, EROFS, err)
|
||||
}
|
||||
|
||||
func TestDirStructSize(t *testing.T) {
|
||||
t.Logf("Dir struct has size %d bytes", unsafe.Sizeof(Dir{}))
|
||||
}
|
||||
|
Reference in New Issue
Block a user