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

Function buildExtStructTest

proto/text_test.go:739–747  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

737}
738
739func buildExtStructTest(text string) UnmarshalTextTest {
740 msg := &pb2.MyMessage{
741 Count: proto.Int32(42),
742 }
743 proto.SetExtension(msg, pb2.E_Ext_More, &pb2.Ext{
744 Data: proto.String("Hello, world!"),
745 })
746 return UnmarshalTextTest{in: text, out: msg}
747}
748
749func buildExtDataTest(text string) UnmarshalTextTest {
750 msg := &pb2.MyMessage{

Callers 1

text_test.goFile · 0.85

Calls 3

Int32Function · 0.92
SetExtensionFunction · 0.92
StringFunction · 0.92

Tested by

no test coverage detected