From d665c79cc9463779f40cbce6ea2cc522003ad5c2 Mon Sep 17 00:00:00 2001 From: Liamsi Date: Wed, 20 Jun 2018 15:15:05 -0700 Subject: [PATCH] WIP: more empty struct examples --- types/proto3_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/types/proto3_test.go b/types/proto3_test.go index 0ab14ea3a..ba5fe4902 100644 --- a/types/proto3_test.go +++ b/types/proto3_test.go @@ -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) + }