Home / Function/ testIncompleteLines() — netty Function Reference

testIncompleteLines() — netty Function Reference

Architecture documentation for the testIncompleteLines() function in DelimiterBasedFrameDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a05b012c_452a_7994_c5ce_d8255bb020e9["testIncompleteLines()"]
  c84b0949_622d_fa8a_b9ca_47fdabf11726["DelimiterBasedFrameDecoderTest"]
  a05b012c_452a_7994_c5ce_d8255bb020e9 -->|defined in| c84b0949_622d_fa8a_b9ca_47fdabf11726
  style a05b012c_452a_7994_c5ce_d8255bb020e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/DelimiterBasedFrameDecoderTest.java lines 88–106

    @Test
    public void testIncompleteLines() {
        EmbeddedChannel ch = new EmbeddedChannel(new DelimiterBasedFrameDecoder(8192, false,
                Delimiters.lineDelimiter()));
        ch.writeInbound(Unpooled.copiedBuffer("Test", Charset.defaultCharset()));
        assertNull(ch.readInbound());
        ch.writeInbound(Unpooled.copiedBuffer("Line\r\ng\r\n", Charset.defaultCharset()));

        ByteBuf buf = ch.readInbound();
        assertEquals("TestLine\r\n", buf.toString(Charset.defaultCharset()));

        ByteBuf buf2 = ch.readInbound();
        assertEquals("g\r\n", buf2.toString(Charset.defaultCharset()));
        assertNull(ch.readInbound());
        ch.finish();

        buf.release();
        buf2.release();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free