Home / Function/ bytesDistributedShouldBeCorrectWithInternalStreamClose() — netty Function Reference

bytesDistributedShouldBeCorrectWithInternalStreamClose() — netty Function Reference

Architecture documentation for the bytesDistributedShouldBeCorrectWithInternalStreamClose() function in WeightedFairQueueByteDistributorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7803309e_0c22_adff_ed9c_fe28d30d2662["bytesDistributedShouldBeCorrectWithInternalStreamClose()"]
  67b7550d_3bc6_4a2b_6b2f_618af35d6df8["WeightedFairQueueByteDistributorTest"]
  7803309e_0c22_adff_ed9c_fe28d30d2662 -->|defined in| 67b7550d_3bc6_4a2b_6b2f_618af35d6df8
  11b51d3d_8188_9502_be8f_cc1ca56136d9["write()"]
  7803309e_0c22_adff_ed9c_fe28d30d2662 -->|calls| 11b51d3d_8188_9502_be8f_cc1ca56136d9
  290143c2_0468_a100_788a_18d9e37200a9["verifyNeverWrite()"]
  7803309e_0c22_adff_ed9c_fe28d30d2662 -->|calls| 290143c2_0468_a100_788a_18d9e37200a9
  fa4d7172_24a5_f6ad_635f_9c2cba8fd926["captureWrites()"]
  7803309e_0c22_adff_ed9c_fe28d30d2662 -->|calls| fa4d7172_24a5_f6ad_635f_9c2cba8fd926
  style 7803309e_0c22_adff_ed9c_fe28d30d2662 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorTest.java lines 846–864

    @Test
    public void bytesDistributedShouldBeCorrectWithInternalStreamClose() throws Http2Exception {
        initState(STREAM_A, 400, true);
        initState(STREAM_B, 500, true);
        initState(STREAM_C, 600, true);
        initState(STREAM_D, 700, true);

        stream(STREAM_A).close();

        assertTrue(write(500));
        verifyNeverWrite(STREAM_A);
        assertEquals(500, captureWrites(STREAM_B) + captureWrites(STREAM_C) + captureWrites(STREAM_D));

        assertFalse(write(1300));
        verifyNeverWrite(STREAM_A);
        assertEquals(500, captureWrites(STREAM_B));
        assertEquals(600, captureWrites(STREAM_C));
        assertEquals(700, captureWrites(STREAM_D));
    }

Domain

Subdomains

Frequently Asked Questions

What does bytesDistributedShouldBeCorrectWithInternalStreamClose() do?
bytesDistributedShouldBeCorrectWithInternalStreamClose() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorTest.java.
Where is bytesDistributedShouldBeCorrectWithInternalStreamClose() defined?
bytesDistributedShouldBeCorrectWithInternalStreamClose() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorTest.java at line 846.
What does bytesDistributedShouldBeCorrectWithInternalStreamClose() call?
bytesDistributedShouldBeCorrectWithInternalStreamClose() calls 3 function(s): captureWrites, verifyNeverWrite, write.

Analyze Your Own Codebase

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

Try Supermodel Free