MCPcopy
hub / github.com/golang/protobuf / TestCompactText

Function TestCompactText

proto/text_test.go:513–518  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

511}
512
513func TestCompactText(t *testing.T) {
514 got := proto.CompactTextString(newTestMessage())
515 if got != compact(text) {
516 t.Errorf("got:\n%v\n\nwant:\n%v", got, compact(text))
517 }
518}
519
520func TestStringEscaping(t *testing.T) {
521 testCases := []struct {

Callers

nothing calls this directly

Calls 3

CompactTextStringFunction · 0.92
newTestMessageFunction · 0.85
compactFunction · 0.85

Tested by

no test coverage detected