Home / Function/ testRespectReadBytes() — netty Function Reference

testRespectReadBytes() — netty Function Reference

Architecture documentation for the testRespectReadBytes() function in DefaultMaxMessagesRecvByteBufAllocatorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  bb582e4a_2fbc_f878_3c14_bedc972a8b78["testRespectReadBytes()"]
  2cef8f8c_3f49_08b7_f2c9_2f7ca3443d75["DefaultMaxMessagesRecvByteBufAllocatorTest"]
  bb582e4a_2fbc_f878_3c14_bedc972a8b78 -->|defined in| 2cef8f8c_3f49_08b7_f2c9_2f7ca3443d75
  style bb582e4a_2fbc_f878_3c14_bedc972a8b78 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultMaxMessagesRecvByteBufAllocatorTest.java lines 40–56

    @Test
    public void testRespectReadBytes() {
        DefaultMaxMessagesRecvByteBufAllocator allocator = newAllocator(false);
        RecvByteBufAllocator.Handle handle = allocator.newHandle();

        EmbeddedChannel channel = new EmbeddedChannel();
        handle.reset(channel.config());
        handle.incMessagesRead(1);
        assertFalse(handle.continueReading());

        handle.reset(channel.config());
        handle.incMessagesRead(1);
        handle.attemptedBytesRead(1);
        handle.lastBytesRead(1);
        assertTrue(handle.continueReading());
        channel.finish();
    }

Domain

Subdomains

Frequently Asked Questions

What does testRespectReadBytes() do?
testRespectReadBytes() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultMaxMessagesRecvByteBufAllocatorTest.java.
Where is testRespectReadBytes() defined?
testRespectReadBytes() is defined in transport/src/test/java/io/netty/channel/DefaultMaxMessagesRecvByteBufAllocatorTest.java at line 40.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free