Home / Function/ testSpdyGoAwayFrame() — netty Function Reference

testSpdyGoAwayFrame() — netty Function Reference

Architecture documentation for the testSpdyGoAwayFrame() function in SpdyFrameDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ed8303a0_744f_6550_3bcc_0eb3d3806e51["testSpdyGoAwayFrame()"]
  694e7f21_2c70_1029_2eab_f7afcf7a1d96["SpdyFrameDecoderTest"]
  ed8303a0_744f_6550_3bcc_0eb3d3806e51 -->|defined in| 694e7f21_2c70_1029_2eab_f7afcf7a1d96
  22716287_5b34_da1d_c8e3_c9777b358484["encodeControlFrameHeader()"]
  ed8303a0_744f_6550_3bcc_0eb3d3806e51 -->|calls| 22716287_5b34_da1d_c8e3_c9777b358484
  style ed8303a0_744f_6550_3bcc_0eb3d3806e51 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java lines 941–958

    @Test
    public void testSpdyGoAwayFrame() throws Exception {
        short type = 7;
        byte flags = 0;
        int length = 8;
        int lastGoodStreamId = RANDOM.nextInt() & 0x7FFFFFFF;
        int statusCode = RANDOM.nextInt() | 0x01;

        ByteBuf buf = Unpooled.buffer(SPDY_HEADER_SIZE + length);
        encodeControlFrameHeader(buf, type, flags, length);
        buf.writeInt(lastGoodStreamId);
        buf.writeInt(statusCode);

        decoder.decode(buf);
        verify(delegate).readGoAwayFrame(lastGoodStreamId, statusCode);
        assertFalse(buf.isReadable());
        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testSpdyGoAwayFrame() do?
testSpdyGoAwayFrame() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java.
Where is testSpdyGoAwayFrame() defined?
testSpdyGoAwayFrame() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java at line 941.
What does testSpdyGoAwayFrame() call?
testSpdyGoAwayFrame() calls 1 function(s): encodeControlFrameHeader.

Analyze Your Own Codebase

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

Try Supermodel Free