Home / Function/ testResolveIpv6WithoutScopeId0() — netty Function Reference

testResolveIpv6WithoutScopeId0() — netty Function Reference

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

Function java Buffer Telemetry calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  aab4b61c_7d52_8bb0_abfe_b7cab326c757["testResolveIpv6WithoutScopeId0()"]
  b6215f36_0afe_a284_a3fd_3999e90a8e97["DnsNameResolverTest"]
  aab4b61c_7d52_8bb0_abfe_b7cab326c757 -->|defined in| b6215f36_0afe_a284_a3fd_3999e90a8e97
  aaccb755_3676_f5c8_aeea_775186634768["testResolveIpv6WithoutScopeId()"]
  aaccb755_3676_f5c8_aeea_775186634768 -->|calls| aab4b61c_7d52_8bb0_abfe_b7cab326c757
  5d91ceb4_4148_f41c_f807_4559fb51c77f["testResolveAllIpv6WithoutScopeId()"]
  5d91ceb4_4148_f41c_f807_4559fb51c77f -->|calls| aab4b61c_7d52_8bb0_abfe_b7cab326c757
  f68a278a_d1e5_7598_a2d3_c261c81029bc["get()"]
  aab4b61c_7d52_8bb0_abfe_b7cab326c757 -->|calls| f68a278a_d1e5_7598_a2d3_c261c81029bc
  df4510f5_88a8_20fd_2366_a4c543cdf3b8["resolve()"]
  aab4b61c_7d52_8bb0_abfe_b7cab326c757 -->|calls| df4510f5_88a8_20fd_2366_a4c543cdf3b8
  style aab4b61c_7d52_8bb0_abfe_b7cab326c757 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver-dns/src/test/java/io/netty/resolver/dns/DnsNameResolverTest.java lines 4005–4024

    private void testResolveIpv6WithoutScopeId0(DnsNameResolverChannelStrategy strategy, boolean resolveAll)
            throws Exception {
        DnsNameResolver resolver = newResolver(strategy).build();
        String addressString = "fe80:0:0:0:1c31:d1d1:4824:72a9";
        byte[] bytes =  NetUtil.createByteArrayFromIpAddressString(addressString);
        Inet6Address inet6Address = (Inet6Address) InetAddress.getByAddress(bytes);
        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 testResolveIpv6WithoutScopeId0() do?
testResolveIpv6WithoutScopeId0() is a function in the netty codebase, defined in resolver-dns/src/test/java/io/netty/resolver/dns/DnsNameResolverTest.java.
Where is testResolveIpv6WithoutScopeId0() defined?
testResolveIpv6WithoutScopeId0() is defined in resolver-dns/src/test/java/io/netty/resolver/dns/DnsNameResolverTest.java at line 4005.
What does testResolveIpv6WithoutScopeId0() call?
testResolveIpv6WithoutScopeId0() calls 2 function(s): get, resolve.
What calls testResolveIpv6WithoutScopeId0()?
testResolveIpv6WithoutScopeId0() is called by 2 function(s): testResolveAllIpv6WithoutScopeId, testResolveIpv6WithoutScopeId.

Analyze Your Own Codebase

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

Try Supermodel Free