testDecodeWithStrip() — netty Function Reference
Architecture documentation for the testDecodeWithStrip() function in LineBasedFrameDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 42ec8672_81c1_3a31_8d88_1f950f38892c["testDecodeWithStrip()"] 619914ab_a3f8_75d9_9843_7bd13a7540ec["LineBasedFrameDecoderTest"] 42ec8672_81c1_3a31_8d88_1f950f38892c -->|defined in| 619914ab_a3f8_75d9_9843_7bd13a7540ec style 42ec8672_81c1_3a31_8d88_1f950f38892c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/LineBasedFrameDecoderTest.java lines 33–51
@Test
public void testDecodeWithStrip() throws Exception {
EmbeddedChannel ch = new EmbeddedChannel(new LineBasedFrameDecoder(8192, true, false));
ch.writeInbound(copiedBuffer("first\r\nsecond\nthird", CharsetUtil.US_ASCII));
ByteBuf buf = ch.readInbound();
assertEquals("first", buf.toString(CharsetUtil.US_ASCII));
ByteBuf buf2 = ch.readInbound();
assertEquals("second", 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 testDecodeWithStrip() do?
testDecodeWithStrip() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/LineBasedFrameDecoderTest.java.
Where is testDecodeWithStrip() defined?
testDecodeWithStrip() is defined in codec-base/src/test/java/io/netty/handler/codec/LineBasedFrameDecoderTest.java at line 33.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free