func TestIndexQueryProtoCompactText(t *testing.T) {
	seed := time.Now().UnixNano()
	popr := math_rand.New(math_rand.NewSource(seed))
	p := NewPopulatedIndexQuery(popr, true)
	data := github_com_gogo_protobuf_proto.CompactTextString(p)
	msg := &IndexQuery{}
	if err := github_com_gogo_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 TestSampleOneOfProtoCompactText(t *testing.T) {
	seed := time.Now().UnixNano()
	popr := math_rand.New(math_rand.NewSource(seed))
	p := NewPopulatedSampleOneOf(popr, true)
	data := github_com_gogo_protobuf_proto.CompactTextString(p)
	msg := &SampleOneOf{}
	if err := github_com_gogo_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 *Maps) String() string            { return proto.CompactTextString(m) }
Exemple #4
0
func (m *TestRequest) String() string            { return proto.CompactTextString(m) }
Exemple #5
0
func (m *FetchOptions) String() string { return proto.CompactTextString(m) }
Exemple #6
0
func (m *Greeting) String() string { return proto.CompactTextString(m) }
Exemple #7
0
func (m *Object) String() string            { return proto.CompactTextString(m) }
func (m *OnlyEnums) String() string            { return proto.CompactTextString(m) }
Exemple #9
0
func (m *ColumnDescriptor) String() string            { return proto.CompactTextString(m) }
Exemple #10
0
func (m *ModelDescriptor) String() string            { return proto.CompactTextString(m) }
Exemple #11
0
func (m *MessageWithMap) String() string            { return proto.CompactTextString(m) }
Exemple #12
0
func (m *Nested) String() string            { return proto.CompactTextString(m) }
func (m *Simple) String() string            { return proto.CompactTextString(m) }
func (m *Real) String() string            { return proto.CompactTextString(m) }
func (m *MsgWithOneof) String() string            { return proto.CompactTextString(m) }
Exemple #16
0
func (m *CodeGeneratorRequest) String() string            { return proto.CompactTextString(m) }
Exemple #17
0
func (m *CodeGeneratorResponse) String() string            { return proto.CompactTextString(m) }
Exemple #18
0
func (m *ScannerDescriptor) String() string            { return proto.CompactTextString(m) }
Exemple #19
0
func (m *MyType) String() string            { return proto.CompactTextString(m) }
Exemple #20
0
func TestCompactText(t *testing.T) {
	s := proto.CompactTextString(newTestMessage())
	if s != compactText {
		t.Errorf("Got:\n===\n%v===\nExpected:\n===\n%v\n===\n", s, compactText)
	}
}
Exemple #21
0
func (m *MoreDefaultsA) String() string            { return proto.CompactTextString(m) }
Exemple #22
0
func (m *AuthzRule) String() string            { return proto.CompactTextString(m) }
Exemple #23
0
func (m *ListOptions) String() string { return proto.CompactTextString(m) }
func (m *Timestamp) String() string { return proto.CompactTextString(m) }
Exemple #25
0
func (m *Item) String() string { return proto.CompactTextString(m) }
Exemple #26
0
func (m *Aproto3) String() string            { return proto.CompactTextString(m) }
Exemple #27
0
func (m *Person) String() string { return proto.CompactTextString(m) }
func (m *SizeMessage) String() string            { return proto.CompactTextString(m) }
func (m *IndexQueries) String() string            { return proto.CompactTextString(m) }
func (m *Widget) String() string            { return proto.CompactTextString(m) }