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

Function buildExtRepStringTest

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

Source from the content-addressed store, hash-verified

756}
757
758func buildExtRepStringTest(text string) UnmarshalTextTest {
759 msg := &pb2.MyMessage{
760 Count: proto.Int32(42),
761 }
762 if err := proto.SetExtension(msg, pb2.E_Greeting, []string{"bula", "hola"}); err != nil {
763 panic(err)
764 }
765 return UnmarshalTextTest{in: text, out: msg}
766}
767
768var unmarshalTextTests = []UnmarshalTextTest{
769 // Basic

Callers 1

text_test.goFile · 0.85

Calls 2

Int32Function · 0.92
SetExtensionFunction · 0.92

Tested by

no test coverage detected