Home / Function/ testLimitPingAck() — netty Function Reference

testLimitPingAck() — netty Function Reference

Architecture documentation for the testLimitPingAck() function in Http2ControlFrameLimitEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  29d45100_5b1a_cee1_549c_23920757a2cd["testLimitPingAck()"]
  22de4aca_61e4_e560_8713_527c2b02db9e["Http2ControlFrameLimitEncoderTest"]
  29d45100_5b1a_cee1_549c_23920757a2cd -->|defined in| 22de4aca_61e4_e560_8713_527c2b02db9e
  47fd1fb2_be80_9cc4_d23f_053ecbef3394["verifyFlushAndClose()"]
  29d45100_5b1a_cee1_549c_23920757a2cd -->|calls| 47fd1fb2_be80_9cc4_d23f_053ecbef3394
  style 29d45100_5b1a_cee1_549c_23920757a2cd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ControlFrameLimitEncoderTest.java lines 206–220

    @Test
    public void testLimitPingAck() {
        assertFalse(encoder.writePing(ctx, true, 8, newPromise()).isDone());
        // The second write is always marked as success by our mock, which means it will also not be queued and so
        // not count to the number of queued frames.
        assertTrue(encoder.writePing(ctx, true, 8, newPromise()).isSuccess());
        assertFalse(encoder.writePing(ctx, true, 8, newPromise()).isDone());

        verifyFlushAndClose(0, false);

        assertFalse(encoder.writePing(ctx, true, 8, newPromise()).isDone());
        assertFalse(encoder.writePing(ctx, true, 8, newPromise()).isDone());

        verifyFlushAndClose(1, true);
    }

Domain

Subdomains

Frequently Asked Questions

What does testLimitPingAck() do?
testLimitPingAck() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ControlFrameLimitEncoderTest.java.
Where is testLimitPingAck() defined?
testLimitPingAck() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ControlFrameLimitEncoderTest.java at line 206.
What does testLimitPingAck() call?
testLimitPingAck() calls 1 function(s): verifyFlushAndClose.

Analyze Your Own Codebase

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

Try Supermodel Free