parseServiceConfig is a test helper which uses the manual resolver to parse the given service config. It calls t.Fatal() if service config parsing fails.
(t *testing.T, r *manual.Resolver, sc string)
| 91 | // parseServiceConfig is a test helper which uses the manual resolver to parse |
| 92 | // the given service config. It calls t.Fatal() if service config parsing fails. |
| 93 | func parseServiceConfig(t *testing.T, r *manual.Resolver, sc string) *serviceconfig.ParseResult { |
| 94 | t.Helper() |
| 95 | |
| 96 | scpr := r.CC().ParseServiceConfig(sc) |
| 97 | if scpr.Err != nil { |
| 98 | t.Fatalf("Failed to parse service config %q: %v", sc, scpr.Err) |
| 99 | } |
| 100 | return scpr |
| 101 | } |
| 102 | |
| 103 | // setupPickFirst performs steps required for pick_first tests. It starts a |
| 104 | // bunch of backends exporting the TestService, creates a ClientConn to them |
no test coverage detected