Example #1
0
func (m *ConfChange) String() string { return proto.CompactTextString(m) }
Example #2
0
func (m *Request) String() string { return proto.CompactTextString(m) }
Example #3
0
func (m *Message) String() string { return proto.CompactTextString(m) }
Example #4
0
func (m *HardState) String() string { return proto.CompactTextString(m) }
Example #5
0
func (m *Snapshot) String() string { return proto.CompactTextString(m) }
Example #6
0
func (m *Entry) String() string { return proto.CompactTextString(m) }
Example #7
0
func (m *Info) String() string { return proto.CompactTextString(m) }
Example #8
0
func (m *Record) String() string { return proto.CompactTextString(m) }
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)
	}
}