Home / Function/ testInternalBufferClearReadPartly() — netty Function Reference

testInternalBufferClearReadPartly() — netty Function Reference

Architecture documentation for the testInternalBufferClearReadPartly() function in ByteToMessageDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  14862962_3758_4dbc_fb0e_cba4adb4b40a["testInternalBufferClearReadPartly()"]
  b1c999fe_35fb_8b70_a958_296cffb0616a["ByteToMessageDecoderTest"]
  14862962_3758_4dbc_fb0e_cba4adb4b40a -->|defined in| b1c999fe_35fb_8b70_a958_296cffb0616a
  style 14862962_3758_4dbc_fb0e_cba4adb4b40a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/ByteToMessageDecoderTest.java lines 116–128

    @Test
    public void testInternalBufferClearReadPartly() {
        final ByteBuf buf = Unpooled.buffer().writeBytes(new byte[] {'a', 'b'});
        EmbeddedChannel channel = newInternalBufferTestChannel();
        assertTrue(channel.writeInbound(buf));
        assertTrue(channel.finish());
        ByteBuf expected = Unpooled.wrappedBuffer(new byte[] {'b'});
        ByteBuf b = channel.readInbound();
        assertEquals(expected, b);
        assertNull(channel.readInbound());
        expected.release();
        b.release();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free