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