mirror of
https://github.com/rclone/rclone.git
synced 2025-08-16 16:41:34 +02:00
vfs: log size of File and Dir in tests for optimization
This commit is contained in:
@ -6,6 +6,7 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
"testing"
|
||||
"unsafe"
|
||||
|
||||
"github.com/rclone/rclone/fs"
|
||||
"github.com/rclone/rclone/fs/operations"
|
||||
@ -411,3 +412,7 @@ func TestFileRename(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestFileStructSize(t *testing.T) {
|
||||
t.Logf("File struct has size %d bytes", unsafe.Sizeof(File{}))
|
||||
}
|
||||
|
Reference in New Issue
Block a user