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

Method TestParseLBConfig

service_config_test.go:112–126  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

110}
111
112func (s) TestParseLBConfig(t *testing.T) {
113 testcases := []parseTestCase{
114 {
115 scjs: `{
116 "loadBalancingConfig": [{"pbb": { "foo": "hi" } }]
117}`,
118 wantSC: &ServiceConfig{
119 Methods: make(map[string]MethodConfig),
120 lbConfig: lbConfigFor(t, "pbb", pbbData{Foo: "hi"}),
121 },
122 wantErr: false,
123 },
124 }
125 runParseTests(t, testcases)
126}
127
128func (s) TestParseNoLBConfigSupported(t *testing.T) {
129 // We have a loadBalancingConfig field but will not encounter a supported

Callers

nothing calls this directly

Calls 2

lbConfigForFunction · 0.85
runParseTestsFunction · 0.85

Tested by

no test coverage detected