seaweedfs/weed/pb/filer_pb/filer_pb_helper_test.go

19 lines
269 B
Go
Raw Normal View History

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