testReadLineLengthRespected2() — netty Function Reference
Architecture documentation for the testReadLineLengthRespected2() function in ByteBufStreamTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e46b5ea9_b173_a388_4ef3_b8b4fc86cefa["testReadLineLengthRespected2()"] a5486ee2_8de3_00d9_5697_f3849d26246a["ByteBufStreamTest"] e46b5ea9_b173_a388_4ef3_b8b4fc86cefa -->|defined in| a5486ee2_8de3_00d9_5697_f3849d26246a style e46b5ea9_b173_a388_4ef3_b8b4fc86cefa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ByteBufStreamTest.java lines 272–283
@Test
public void testReadLineLengthRespected2() throws Exception {
ByteBuf buf2 = Unpooled.buffer(16);
buf2.writeBytes(new byte[] { 'A', 'B', '\n', 'C', 'E', 'F'});
try (ByteBufInputStream in2 = new ByteBufInputStream(buf2, 4)) {
assertEquals("AB", in2.readLine());
assertEquals("C", in2.readLine());
assertNull(in2.readLine());
buf2.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testReadLineLengthRespected2() do?
testReadLineLengthRespected2() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufStreamTest.java.
Where is testReadLineLengthRespected2() defined?
testReadLineLengthRespected2() is defined in buffer/src/test/java/io/netty/buffer/ByteBufStreamTest.java at line 272.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free