Home / Function/ testAddressNotIncludeScopeId() — netty Function Reference

testAddressNotIncludeScopeId() — netty Function Reference

Architecture documentation for the testAddressNotIncludeScopeId() function in NativeInetAddressTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b428d339_3d7b_e456_cf77_baa7358c1ee0["testAddressNotIncludeScopeId()"]
  32eb789d_8701_8ffc_177a_69c16006f998["NativeInetAddressTest"]
  b428d339_3d7b_e456_cf77_baa7358c1ee0 -->|defined in| 32eb789d_8701_8ffc_177a_69c16006f998
  style b428d339_3d7b_e456_cf77_baa7358c1ee0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-unix-common/src/test/java/io/netty/channel/unix/NativeInetAddressTest.java lines 28–40

    @Test
    public void testAddressNotIncludeScopeId() {
        int port = 80;
        ByteBuffer buffer = ByteBuffer.wrap(new byte[24]);
        buffer.put(new byte[] {'0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1'});
        buffer.putInt(0);
        buffer.putInt(port);
        InetSocketAddress address = NativeInetAddress.address(buffer.array(), 0, buffer.capacity());
        assertEquals(port, address.getPort());
        assertInstanceOf(Inet6Address.class, address.getAddress());
        assertFalse(address.getAddress().isLinkLocalAddress());
        assertEquals("3030:3030:3030:3030:3030:3030:3030:3031", address.getAddress().getHostName());
    }

Domain

Subdomains

Frequently Asked Questions

What does testAddressNotIncludeScopeId() do?
testAddressNotIncludeScopeId() is a function in the netty codebase, defined in transport-native-unix-common/src/test/java/io/netty/channel/unix/NativeInetAddressTest.java.
Where is testAddressNotIncludeScopeId() defined?
testAddressNotIncludeScopeId() is defined in transport-native-unix-common/src/test/java/io/netty/channel/unix/NativeInetAddressTest.java at line 28.

Analyze Your Own Codebase

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

Try Supermodel Free