Home / Function/ testLastSpdySynReplyFrame() — netty Function Reference

testLastSpdySynReplyFrame() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java lines 392–408

    @Test
    public void testLastSpdySynReplyFrame() throws Exception {
        short type = 2;
        byte flags = 0x01; // FLAG_FIN
        int length = 4;
        int streamId = RANDOM.nextInt() & 0x7FFFFFFF | 0x01;

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

        decoder.decode(buf);
        verify(delegate).readSynReplyFrame(streamId, true);
        verify(delegate).readHeaderBlockEnd();
        assertFalse(buf.isReadable());
        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

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