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

Function buildExtDataTest

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

Source from the content-addressed store, hash-verified

747}
748
749func buildExtDataTest(text string) UnmarshalTextTest {
750 msg := &pb2.MyMessage{
751 Count: proto.Int32(42),
752 }
753 proto.SetExtension(msg, pb2.E_Ext_Text, proto.String("Hello, world!"))
754 proto.SetExtension(msg, pb2.E_Ext_Number, proto.Int32(1729))
755 return UnmarshalTextTest{in: text, out: msg}
756}
757
758func buildExtRepStringTest(text string) UnmarshalTextTest {
759 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