seaweedfs/weed/pb/filer_pb/filer_pb_helper_test.go

18 lines
274 B
Go
Raw Normal View History

package filer_pb
import (
"testing"
2019-05-17 17:28:20 +08:00
"github.com/golang/protobuf/proto"
)
func TestFileIdSize(t *testing.T) {
fileIdStr := "11745,0293434534cbb9892b"
2019-06-23 03:30:08 +08:00
fid, _ := toFileIdObject(fileIdStr)
bytes, _ := proto.Marshal(fid)
println(len(fileIdStr))
println(len(bytes))
}