Browse Source

WIP: more empty struct examples

pull/1742/head
Liamsi 6 years ago
parent
commit
d665c79cc9
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      types/proto3_test.go

+ 9
- 0
types/proto3_test.go View File

@ -89,4 +89,13 @@ func TestProto3Compatibility(t *testing.T) {
assert.NoError(t, err, "unexpected error")
// This works:
assert.Equal(t, ab, pb, "encoding doesn't match")
pb, err = proto.Marshal(&proto3.Header{})
assert.NoError(t, err, "unexpected error")
t.Log(pb)
pb, err = proto.Marshal(&proto3.Timestamp{})
assert.NoError(t, err, "unexpected error")
t.Log(pb)
}

Loading…
Cancel
Save