MCPcopy
hub / github.com/grpc/grpc-go / parseCfg

Function parseCfg

clientconn_test.go:60–66  ·  view source on GitHub ↗
(r *manual.Resolver, s string)

Source from the content-addressed store, hash-verified

58}
59
60func parseCfg(r *manual.Resolver, s string) *serviceconfig.ParseResult {
61 scpr := r.CC().ParseServiceConfig(s)
62 if scpr.Err != nil {
63 panic(fmt.Sprintf("Error parsing config %q: %v", s, scpr.Err))
64 }
65 return scpr
66}
67
68func (s) TestNewClientWithMultipleBackendsNotSendingServerPreface(t *testing.T) {
69 lis1, err := net.Listen("tcp", "localhost:0")

Calls 2

CCMethod · 0.80
ParseServiceConfigMethod · 0.65

Tested by

no test coverage detected