Beispiel #1
0
func TestMoreDefaultsAProtoCompactText(t *testing.T) {
	popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
	p := NewPopulatedMoreDefaultsA(popr, true)
	data := github_com_gogo_protobuf_proto.CompactTextString(p)
	msg := &MoreDefaultsA{}
	if err := github_com_gogo_protobuf_proto.UnmarshalText(data, msg); err != nil {
		panic(err)
	}
	if !p.Equal(msg) {
		t.Fatalf("%#v !Proto %#v", msg, p)
	}
}
func TestAllMapsProtoCompactText(t *testing.T) {
	popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
	p := NewPopulatedAllMaps(popr, true)
	data := github_com_gogo_protobuf_proto.CompactTextString(p)
	msg := &AllMaps{}
	if err := github_com_gogo_protobuf_proto.UnmarshalText(data, msg); err != nil {
		panic(err)
	}
	if err := p.VerboseEqual(msg); err != nil {
		t.Fatalf("%#v !VerboseProto %#v, since %v", msg, p, err)
	}
	if !p.Equal(msg) {
		t.Fatalf("%#v !Proto %#v", msg, p)
	}
}
Beispiel #3
0
func (m *OldReply) String() string { return proto.CompactTextString(m) }
Beispiel #4
0
func (m *OtherReplyExtensions) String() string { return proto.CompactTextString(m) }
Beispiel #5
0
func (m *OtherBase) String() string { return proto.CompactTextString(m) }
Beispiel #6
0
func (m *Foo) String() string { return proto1.CompactTextString(m) }
Beispiel #7
0
func (m *CodeGeneratorRequest) String() string { return proto.CompactTextString(m) }
Beispiel #8
0
func (m *NinOptEnum) String() string { return proto.CompactTextString(m) }
Beispiel #9
0
func (m *MessageWithMap) String() string { return proto.CompactTextString(m) }
Beispiel #10
0
func (m *MoreDefaultsA) String() string { return proto.CompactTextString(m) }
Beispiel #11
0
func (m *FooWithRepeated) String() string { return proto.CompactTextString(m) }
func (m *NidOptNative) String() string { return proto.CompactTextString(m) }
func (m *RequiredExample) String() string { return proto.CompactTextString(m) }
func (m *NestedNinOptNative) String() string { return proto.CompactTextString(m) }
Beispiel #15
0
func (m *A) String() string { return proto.CompactTextString(m) }
Beispiel #16
0
func (m *SizeMessage) String() string { return proto.CompactTextString(m) }
Beispiel #17
0
func (m *IndexQuery) String() string { return proto.CompactTextString(m) }
Beispiel #18
0
func (m *SubObject) String() string { return proto.CompactTextString(m) }
Beispiel #19
0
func (m *Request) String() string { return proto.CompactTextString(m) }
Beispiel #20
0
func (m *CodeGeneratorResponse) String() string { return proto.CompactTextString(m) }
Beispiel #21
0
func (m *Request_SomeGroup) String() string { return proto.CompactTextString(m) }
Beispiel #22
0
func (m *Reply_Entry) String() string { return proto.CompactTextString(m) }
Beispiel #23
0
func (m *Outside) String() string { return proto.CompactTextString(m) }