filer_pb_helper_test.go 274 B

1234567891011121314151617
  1. package filer_pb
  2. import (
  3. "testing"
  4. "google.golang.org/protobuf/proto"
  5. )
  6. func TestFileIdSize(t *testing.T) {
  7. fileIdStr := "11745,0293434534cbb9892b"
  8. fid, _ := ToFileIdObject(fileIdStr)
  9. bytes, _ := proto.Marshal(fid)
  10. println(len(fileIdStr))
  11. println(len(bytes))
  12. }