Home / Function/ testReservedSpdyGoAwayFrameBits() — netty Function Reference

testReservedSpdyGoAwayFrameBits() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java lines 979–996

    @Test
    public void testReservedSpdyGoAwayFrameBits() 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 | 0x80000000); // should ignore reserved bit
        buf.writeInt(statusCode);

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

Domain

Subdomains

Frequently Asked Questions

What does testReservedSpdyGoAwayFrameBits() do?
testReservedSpdyGoAwayFrameBits() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java.
Where is testReservedSpdyGoAwayFrameBits() defined?
testReservedSpdyGoAwayFrameBits() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java at line 979.
What does testReservedSpdyGoAwayFrameBits() call?
testReservedSpdyGoAwayFrameBits() 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