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"
2020-08-16 02:55:28 +00:00
fid, _ := ToFileIdObject(fileIdStr)
bytes, _ := proto.Marshal(fid)
println(len(fileIdStr))
println(len(bytes))
}