Home / Function/ testAggregateWithPartialRead() — netty Function Reference

testAggregateWithPartialRead() — netty Function Reference

Architecture documentation for the testAggregateWithPartialRead() function in CoalescingBufferQueueTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  dd649037_4a8d_a5d1_fa28_99658bb4bd22["testAggregateWithPartialRead()"]
  ccc522b2_7fa1_bc1b_d4b4_2b255b9936f9["CoalescingBufferQueueTest"]
  dd649037_4a8d_a5d1_fa28_99658bb4bd22 -->|defined in| ccc522b2_7fa1_bc1b_d4b4_2b255b9936f9
  f9a9510c_fde3_46f3_be9a_be659d967b32["assertQueueSize()"]
  dd649037_4a8d_a5d1_fa28_99658bb4bd22 -->|calls| f9a9510c_fde3_46f3_be9a_be659d967b32
  style dd649037_4a8d_a5d1_fa28_99658bb4bd22 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/CoalescingBufferQueueTest.java lines 145–166

    @Test
    public void testAggregateWithPartialRead() {
        writeQueue.add(cat, catPromise);
        writeQueue.add(mouse, mouseListener);
        ChannelPromise aggregatePromise = newPromise();
        assertEquals("catm", dequeue(4, aggregatePromise));
        assertQueueSize(4, false);
        assertFalse(catPromise.isSuccess());
        assertFalse(mouseDone);
        aggregatePromise.setSuccess();
        assertTrue(catPromise.isSuccess());
        assertFalse(mouseDone);

        aggregatePromise = newPromise();
        assertEquals("ouse", dequeue(Integer.MAX_VALUE, aggregatePromise));
        assertQueueSize(0, true);
        assertFalse(mouseDone);
        aggregatePromise.setSuccess();
        assertTrue(mouseSuccess);
        assertEquals(0, cat.refCnt());
        assertEquals(0, mouse.refCnt());
    }

Domain

Subdomains

Frequently Asked Questions

What does testAggregateWithPartialRead() do?
testAggregateWithPartialRead() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/CoalescingBufferQueueTest.java.
Where is testAggregateWithPartialRead() defined?
testAggregateWithPartialRead() is defined in transport/src/test/java/io/netty/channel/CoalescingBufferQueueTest.java at line 145.
What does testAggregateWithPartialRead() call?
testAggregateWithPartialRead() calls 1 function(s): assertQueueSize.

Analyze Your Own Codebase

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

Try Supermodel Free