Home / Function/ testResolveIpv6WithScopeId0() — netty Function Reference

testResolveIpv6WithScopeId0() — netty Function Reference

Architecture documentation for the testResolveIpv6WithScopeId0() function in DnsNameResolverTest.java from the netty codebase.

Function java Buffer Search calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  38f4f2e9_801c_4e8e_e20d_4c7362544c1e["testResolveIpv6WithScopeId0()"]
  b6215f36_0afe_a284_a3fd_3999e90a8e97["DnsNameResolverTest"]
  38f4f2e9_801c_4e8e_e20d_4c7362544c1e -->|defined in| b6215f36_0afe_a284_a3fd_3999e90a8e97
  63cbf43a_ef93_09b9_eb3d_aee9edab9350["testResolveIpv6WithScopeId()"]
  63cbf43a_ef93_09b9_eb3d_aee9edab9350 -->|calls| 38f4f2e9_801c_4e8e_e20d_4c7362544c1e
  c50e98ef_6c7c_a144_3a0b_c10d91ad82f9["testResolveAllIpv6WithScopeId()"]
  c50e98ef_6c7c_a144_3a0b_c10d91ad82f9 -->|calls| 38f4f2e9_801c_4e8e_e20d_4c7362544c1e
  f68a278a_d1e5_7598_a2d3_c261c81029bc["get()"]
  38f4f2e9_801c_4e8e_e20d_4c7362544c1e -->|calls| f68a278a_d1e5_7598_a2d3_c261c81029bc
  df4510f5_88a8_20fd_2366_a4c543cdf3b8["resolve()"]
  38f4f2e9_801c_4e8e_e20d_4c7362544c1e -->|calls| df4510f5_88a8_20fd_2366_a4c543cdf3b8
  style 38f4f2e9_801c_4e8e_e20d_4c7362544c1e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver-dns/src/test/java/io/netty/resolver/dns/DnsNameResolverTest.java lines 3970–3991

    private void testResolveIpv6WithScopeId0(DnsNameResolverChannelStrategy strategy, boolean resolveAll)
            throws Exception {
        DnsNameResolver resolver = newResolver(strategy).build();
        String address = "fe80:0:0:0:1c31:d1d1:4824:72a9";
        int scopeId = 15;
        String addressString = address + '%' + scopeId;
        byte[] bytes =  NetUtil.createByteArrayFromIpAddressString(address);
        Inet6Address inet6Address = Inet6Address.getByAddress(null, bytes, scopeId);
        try {
            final InetAddress addr;
            if (resolveAll) {
                List<InetAddress> addressList = resolver.resolveAll(addressString).getNow();
                assertEquals(1, addressList.size());
                addr = addressList.get(0);
            } else {
                addr = resolver.resolve(addressString).getNow();
            }
            assertEquals(inet6Address, addr);
        } finally {
            resolver.close();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testResolveIpv6WithScopeId0() do?
testResolveIpv6WithScopeId0() is a function in the netty codebase, defined in resolver-dns/src/test/java/io/netty/resolver/dns/DnsNameResolverTest.java.
Where is testResolveIpv6WithScopeId0() defined?
testResolveIpv6WithScopeId0() is defined in resolver-dns/src/test/java/io/netty/resolver/dns/DnsNameResolverTest.java at line 3970.
What does testResolveIpv6WithScopeId0() call?
testResolveIpv6WithScopeId0() calls 2 function(s): get, resolve.
What calls testResolveIpv6WithScopeId0()?
testResolveIpv6WithScopeId0() is called by 2 function(s): testResolveAllIpv6WithScopeId, testResolveIpv6WithScopeId.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free