Home / Function/ testPushStream() — netty Function Reference

testPushStream() — netty Function Reference

Architecture documentation for the testPushStream() function in Http3UnidirectionalStreamInboundHandlerTest.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 3

Entity Profile

Dependency Diagram

graph TD
  0b8b1912_5637_ceae_7341_bcee2775d1dd["testPushStream()"]
  25ca3b24_17b0_d7c2_ddbd_1036d0071d78["Http3UnidirectionalStreamInboundHandlerTest"]
  0b8b1912_5637_ceae_7341_bcee2775d1dd -->|defined in| 25ca3b24_17b0_d7c2_ddbd_1036d0071d78
  87cb4ed9_1527_5527_6f8f_cc1a36ab73e8["testPushStreamNoMaxPushIdFrameSent()"]
  87cb4ed9_1527_5527_6f8f_cc1a36ab73e8 -->|calls| 0b8b1912_5637_ceae_7341_bcee2775d1dd
  6272574f_606a_0075_7214_dd955f20ac1d["testPushStreamMaxPushIdFrameSentWithSmallerId()"]
  6272574f_606a_0075_7214_dd955f20ac1d -->|calls| 0b8b1912_5637_ceae_7341_bcee2775d1dd
  aa16368c_db81_9514_0dc1_f7151525e610["testPushStreamMaxPushIdFrameSentWithSameId()"]
  aa16368c_db81_9514_0dc1_f7151525e610 -->|calls| 0b8b1912_5637_ceae_7341_bcee2775d1dd
  56d89f3f_d102_9002_53c9_94064eade84d["setup()"]
  0b8b1912_5637_ceae_7341_bcee2775d1dd -->|calls| 56d89f3f_d102_9002_53c9_94064eade84d
  style 0b8b1912_5637_ceae_7341_bcee2775d1dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/test/java/io/netty/handler/codec/http3/Http3UnidirectionalStreamInboundHandlerTest.java lines 113–131

    @ParameterizedTest(name = "{index}: server = {0}")
    @ValueSource(booleans = {false, true})
    public void testPushStream(boolean server) throws Exception {
        setup(server);
        EmbeddedChannel channel = newChannel(server);
        ByteBuf buffer = Unpooled.buffer(8);
        Http3CodecUtils.writeVariableLengthInteger(buffer, HTTP3_PUSH_STREAM_TYPE);
        Http3CodecUtils.writeVariableLengthInteger(buffer, 2);
        assertFalse(channel.writeInbound(buffer));
        assertEquals(0, buffer.refCnt());
        if (server) {
            Http3TestUtils.verifyClose(Http3ErrorCode.H3_STREAM_CREATION_ERROR, (EmbeddedQuicChannel) channel.parent());
        } else {
            ByteBuf b = Unpooled.buffer();
            assertFalse(channel.writeInbound(b));
            assertEquals(0, b.refCnt());
        }
        assertFalse(channel.finish());
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testPushStream() do?
testPushStream() is a function in the netty codebase, defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3UnidirectionalStreamInboundHandlerTest.java.
Where is testPushStream() defined?
testPushStream() is defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3UnidirectionalStreamInboundHandlerTest.java at line 113.
What does testPushStream() call?
testPushStream() calls 1 function(s): setup.
What calls testPushStream()?
testPushStream() is called by 3 function(s): testPushStreamMaxPushIdFrameSentWithSameId, testPushStreamMaxPushIdFrameSentWithSmallerId, testPushStreamNoMaxPushIdFrameSent.

Analyze Your Own Codebase

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

Try Supermodel Free