Home / Function/ testIncompleteLinesStrippedDelimiters() — netty Function Reference

testIncompleteLinesStrippedDelimiters() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/DelimiterBasedFrameDecoderTest.java lines 50–68

    @Test
    public void testIncompleteLinesStrippedDelimiters() {
        EmbeddedChannel ch = new EmbeddedChannel(new DelimiterBasedFrameDecoder(8192, true,
                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", buf.toString(Charset.defaultCharset()));

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

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free