mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-24 01:16:39 +08:00
19 lines
267 B
Go
19 lines
267 B
Go
![]() |
package filer_pb
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/gogo/protobuf/proto"
|
||
|
)
|
||
|
|
||
|
func TestFileIdSize(t *testing.T) {
|
||
|
fileIdStr := "11745,0293434534cbb9892b"
|
||
|
|
||
|
fid, _ := toFileId(fileIdStr)
|
||
|
bytes, _ := proto.Marshal(fid)
|
||
|
|
||
|
println(len(fileIdStr))
|
||
|
println(len(bytes))
|
||
|
}
|
||
|
|