Home / Function/ testWrapLong() — netty Function Reference

testWrapLong() — netty Function Reference

Architecture documentation for the testWrapLong() function in UnpooledTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ca67c5df_4608_be3e_ee5b_056ae996cb79["testWrapLong()"]
  57588d83_f329_0d85_cfc5_eea9b8d43e8f["UnpooledTest"]
  ca67c5df_4608_be3e_ee5b_056ae996cb79 -->|defined in| 57588d83_f329_0d85_cfc5_eea9b8d43e8f
  style ca67c5df_4608_be3e_ee5b_056ae996cb79 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/UnpooledTest.java lines 600–616

    @Test
    public void testWrapLong() {
        ByteBuf buffer = copyLong(1, 4);
        assertEquals(16, buffer.capacity());
        assertEquals(1, buffer.readLong());
        assertEquals(4, buffer.readLong());
        assertFalse(buffer.isReadable());
        buffer.release();

        buffer = copyLong(null);
        assertEquals(0, buffer.capacity());
        buffer.release();

        buffer = copyLong(new long[] {});
        assertEquals(0, buffer.capacity());
        buffer.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testWrapLong() do?
testWrapLong() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/UnpooledTest.java.
Where is testWrapLong() defined?
testWrapLong() is defined in buffer/src/test/java/io/netty/buffer/UnpooledTest.java at line 600.

Analyze Your Own Codebase

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

Try Supermodel Free