Home / Function/ testPrependAdjustedLength() — netty Function Reference

testPrependAdjustedLength() — netty Function Reference

Architecture documentation for the testPrependAdjustedLength() function in LengthFieldPrependerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9dd21210_d694_9d4c_b131_63b57380395d["testPrependAdjustedLength()"]
  08a86b56_30dc_8ade_d1cb_23b1a52cba79["LengthFieldPrependerTest"]
  9dd21210_d694_9d4c_b131_63b57380395d -->|defined in| 08a86b56_30dc_8ade_d1cb_23b1a52cba79
  style 9dd21210_d694_9d4c_b131_63b57380395d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldPrependerTest.java lines 71–83

    @Test
    public void testPrependAdjustedLength() throws Exception {
        final EmbeddedChannel ch = new EmbeddedChannel(new LengthFieldPrepender(4, -1));
        ch.writeOutbound(msg);
        ByteBuf buf = ch.readOutbound();
        assertEquals(4, buf.readableBytes());
        assertEquals(msg.readableBytes() - 1, buf.readInt());
        buf.release();

        buf = ch.readOutbound();
        assertSame(buf, msg);
        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testPrependAdjustedLength() do?
testPrependAdjustedLength() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldPrependerTest.java.
Where is testPrependAdjustedLength() defined?
testPrependAdjustedLength() is defined in codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldPrependerTest.java at line 71.

Analyze Your Own Codebase

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

Try Supermodel Free