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 09:28:20 +00:00
"github.com/golang/protobuf/proto"
)
func TestFileIdSize(t *testing.T) {
fileIdStr := "11745,0293434534cbb9892b"
2019-06-22 19:30:08 +00:00
fid, _ := toFileIdObject(fileIdStr)
bytes, _ := proto.Marshal(fid)
println(len(fileIdStr))
println(len(bytes))
}