seaweedfs/weed/pb/filer_pb/filer_pb_helper_test.go

18 lines
274 B
Go
Raw Normal View History

package filer_pb
import (
"testing"
2022-08-18 03:05:07 +08:00
"google.golang.org/protobuf/proto"
)
func TestFileIdSize(t *testing.T) {
fileIdStr := "11745,0293434534cbb9892b"
2020-08-16 10:55:28 +08:00
fid, _ := ToFileIdObject(fileIdStr)
bytes, _ := proto.Marshal(fid)
println(len(fileIdStr))
println(len(bytes))
}