testDecodeWithoutStrip() — netty Function Reference
Architecture documentation for the testDecodeWithoutStrip() function in LineBasedFrameDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0ac89e4f_3776_d729_e0de_0a7d9596af5b["testDecodeWithoutStrip()"] 619914ab_a3f8_75d9_9843_7bd13a7540ec["LineBasedFrameDecoderTest"] 0ac89e4f_3776_d729_e0de_0a7d9596af5b -->|defined in| 619914ab_a3f8_75d9_9843_7bd13a7540ec style 0ac89e4f_3776_d729_e0de_0a7d9596af5b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/LineBasedFrameDecoderTest.java lines 53–70
@Test
public void testDecodeWithoutStrip() throws Exception {
EmbeddedChannel ch = new EmbeddedChannel(new LineBasedFrameDecoder(8192, false, false));
ch.writeInbound(copiedBuffer("first\r\nsecond\nthird", CharsetUtil.US_ASCII));
ByteBuf buf = ch.readInbound();
assertEquals("first\r\n", buf.toString(CharsetUtil.US_ASCII));
ByteBuf buf2 = ch.readInbound();
assertEquals("second\n", buf2.toString(CharsetUtil.US_ASCII));
assertNull(ch.readInbound());
ch.finish();
ReferenceCountUtil.release(ch.readInbound());
buf.release();
buf2.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testDecodeWithoutStrip() do?
testDecodeWithoutStrip() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/LineBasedFrameDecoderTest.java.
Where is testDecodeWithoutStrip() defined?
testDecodeWithoutStrip() is defined in codec-base/src/test/java/io/netty/handler/codec/LineBasedFrameDecoderTest.java at line 53.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free