func TestMoreDefaultsAProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedMoreDefaultsA(popr, true) data := github_com_maditya_protobuf_proto.CompactTextString(p) msg := &MoreDefaultsA{} if err := github_com_maditya_protobuf_proto.UnmarshalText(data, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) } }
func TestWilsonProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedWilson(popr, true) data := github_com_maditya_protobuf_proto.CompactTextString(p) msg := &Wilson{} if err := github_com_maditya_protobuf_proto.UnmarshalText(data, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if err := p.VerboseEqual(msg); err != nil { t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err) } if !p.Equal(msg) { t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) } }
func (m *Widget) String() string { return proto.CompactTextString(m) }
func (m *NinOptEnum) String() string { return proto.CompactTextString(m) }
func (m *Foo) String() string { return proto1.CompactTextString(m) }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (m *RepStdTypes) String() string { return proto.CompactTextString(m) }
func (m *Real) String() string { return proto.CompactTextString(m) }
func (m *Simple) String() string { return proto.CompactTextString(m) }
func (m *Communique_SomeGroup) String() string { return proto.CompactTextString(m) }
func (m *Communique_Delta) String() string { return proto.CompactTextString(m) }
func (m *OtherReplyExtensions) String() string { return proto.CompactTextString(m) }
func (m *OldReply) String() string { return proto.CompactTextString(m) }
func (m *OtherBase) String() string { return proto.CompactTextString(m) }
func (m *Reply_Entry) String() string { return proto.CompactTextString(m) }
func (m *Request_SomeGroup) String() string { return proto.CompactTextString(m) }
func (m *Maps) String() string { return proto.CompactTextString(m) }
func (m *TestRequest) String() string { return proto.CompactTextString(m) }
func (m *MsgWithOneof) String() string { return proto.CompactTextString(m) }
func (m *FooWithRepeated) String() string { return proto.CompactTextString(m) }
func (m *KnownTypes) String() string { return proto.CompactTextString(m) }
func (m *IndexQuery) String() string { return proto.CompactTextString(m) }
func (m *Nested) String() string { return proto.CompactTextString(m) }
func (m *MyType) String() string { return proto.CompactTextString(m) }
func (m *OrderedFields) String() string { return proto.CompactTextString(m) }
func (m *OnlyEnums) String() string { return proto.CompactTextString(m) }
func (m *Object) String() string { return proto.CompactTextString(m) }
func (m *Aproto3) String() string { return proto.CompactTextString(m) }
func (m *MoreDefaultsA) String() string { return proto.CompactTextString(m) }
func (m *CodeGeneratorResponse) String() string { return proto.CompactTextString(m) }