Home / Function/ testWrapInt() — netty Function Reference

testWrapInt() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/UnpooledTest.java lines 501–517

    @Test
    public void testWrapInt() {
        ByteBuf buffer = copyInt(1, 4);
        assertEquals(8, buffer.capacity());
        assertEquals(1, buffer.readInt());
        assertEquals(4, buffer.readInt());
        assertFalse(buffer.isReadable());
        buffer.release();

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

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free