testIgnoreReadBytes() — netty Function Reference
Architecture documentation for the testIgnoreReadBytes() function in DefaultMaxMessagesRecvByteBufAllocatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f29342dd_2660_b2c2_8ead_9c418a87aee7["testIgnoreReadBytes()"] 2cef8f8c_3f49_08b7_f2c9_2f7ca3443d75["DefaultMaxMessagesRecvByteBufAllocatorTest"] f29342dd_2660_b2c2_8ead_9c418a87aee7 -->|defined in| 2cef8f8c_3f49_08b7_f2c9_2f7ca3443d75 style f29342dd_2660_b2c2_8ead_9c418a87aee7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/DefaultMaxMessagesRecvByteBufAllocatorTest.java lines 58–75
@Test
public void testIgnoreReadBytes() {
DefaultMaxMessagesRecvByteBufAllocator allocator = newAllocator(true);
RecvByteBufAllocator.Handle handle = allocator.newHandle();
EmbeddedChannel channel = new EmbeddedChannel();
handle.reset(channel.config());
handle.incMessagesRead(1);
assertTrue(handle.continueReading());
handle.incMessagesRead(1);
assertFalse(handle.continueReading());
handle.reset(channel.config());
handle.attemptedBytesRead(0);
handle.lastBytesRead(0);
assertTrue(handle.continueReading());
channel.finish();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testIgnoreReadBytes() do?
testIgnoreReadBytes() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultMaxMessagesRecvByteBufAllocatorTest.java.
Where is testIgnoreReadBytes() defined?
testIgnoreReadBytes() is defined in transport/src/test/java/io/netty/channel/DefaultMaxMessagesRecvByteBufAllocatorTest.java at line 58.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free