func TestPBNodeProtoCompactText(t *testing.T) { popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) p := NewPopulatedPBNode(popr, true) data := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &PBNode{} 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) } }
func (m *Message_Wantlist_Entry) String() string { return proto.CompactTextString(m) }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (m *Data) String() string { return proto.CompactTextString(m) }
func (m *Record) String() string { return proto.CompactTextString(m) }
func (m *Exchange) String() string { return proto.CompactTextString(m) }
func (m *Propose) String() string { return proto.CompactTextString(m) }
func (m *PrivateKey) String() string { return proto.CompactTextString(m) }
func (m *PublicKey) String() string { return proto.CompactTextString(m) }
func (m *Identify) String() string { return proto.CompactTextString(m) }
func (m *IpnsEntry) String() string { return proto.CompactTextString(m) }