Home / Function/ testPrependLengthIncludesLengthFieldLength() — netty Function Reference

testPrependLengthIncludesLengthFieldLength() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldPrependerTest.java lines 57–69

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

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free