(t *testing.T, r *manual.Resolver, addr, sc string)
| 901 | } |
| 902 | |
| 903 | func testInvalidDefaultServiceConfig(t *testing.T, r *manual.Resolver, addr, sc string) { |
| 904 | _, err := NewClient(addr, WithTransportCredentials(insecure.NewCredentials()), WithResolvers(r), WithDefaultServiceConfig(sc)) |
| 905 | if !strings.Contains(err.Error(), invalidDefaultServiceConfigErrPrefix) { |
| 906 | t.Fatalf("grpc.NewClient() got err: %v, want err contains: %v", err, invalidDefaultServiceConfigErrPrefix) |
| 907 | } |
| 908 | } |
| 909 | |
| 910 | func testDefaultServiceConfigWhenResolverServiceConfigDisabled(t *testing.T, r *manual.Resolver, addr string, js string) { |
| 911 | cc, err := NewClient(addr, WithTransportCredentials(insecure.NewCredentials()), WithDisableServiceConfig(), WithResolvers(r), WithDefaultServiceConfig(js)) |
nothing calls this directly
no test coverage detected