You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
269 B

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