• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

grpc / grpc-java / #20263

05 May 2026 06:23PM UTC coverage: 88.817% (+0.01%) from 88.807%
#20263

push

github

jdcormie
core: Make NameResolverFactoryToProviderFacade transparent w.r.t io.grpc.Uri

36145 of 40696 relevant lines covered (88.82%)

0.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

87.5
/../core/src/main/java/io/grpc/internal/NameResolverFactoryToProviderFacade.java
1
/*
2
 * Copyright 2023 The gRPC Authors
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package io.grpc.internal;
18

19
import io.grpc.NameResolver;
20
import io.grpc.NameResolver.Args;
21
import io.grpc.NameResolverProvider;
22
import io.grpc.Uri;
23
import java.net.URI;
24

25
public class NameResolverFactoryToProviderFacade extends NameResolverProvider {
26

27
  private NameResolver.Factory factory;
28

29
  NameResolverFactoryToProviderFacade(NameResolver.Factory factory) {
1✔
30
    this.factory = factory;
1✔
31
  }
1✔
32

33
  @Override
34
  public NameResolver newNameResolver(URI targetUri, Args args) {
35
    return factory.newNameResolver(targetUri, args);
1✔
36
  }
37

38
  @Override
39
  public NameResolver newNameResolver(Uri targetUri, Args args) {
40
    return factory.newNameResolver(targetUri, args);
×
41
  }
42

43
  @Override
44
  public String getDefaultScheme() {
45
    return factory.getDefaultScheme();
1✔
46
  }
47

48
  @Override
49
  protected boolean isAvailable() {
50
    return true;
1✔
51
  }
52

53
  @Override
54
  protected int priority() {
55
    return 5;
1✔
56
  }
57
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc