Home / Function/ testSpdyDataFrame() — netty Function Reference

testSpdyDataFrame() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c51bc459_2f26_5c59_8526_88a7ed89b9b5["testSpdyDataFrame()"]
  694e7f21_2c70_1029_2eab_f7afcf7a1d96["SpdyFrameDecoderTest"]
  c51bc459_2f26_5c59_8526_88a7ed89b9b5 -->|defined in| 694e7f21_2c70_1029_2eab_f7afcf7a1d96
  cb72ab17_1cd4_7ebe_95d0_fb882746a21c["encodeDataFrameHeader()"]
  c51bc459_2f26_5c59_8526_88a7ed89b9b5 -->|calls| cb72ab17_1cd4_7ebe_95d0_fb882746a21c
  style c51bc459_2f26_5c59_8526_88a7ed89b9b5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java lines 67–82

    @Test
    public void testSpdyDataFrame() throws Exception {
        int streamId = RANDOM.nextInt() & 0x7FFFFFFF | 0x01;
        byte flags = 0;
        int length = 1024;

        ByteBuf buf = Unpooled.buffer(SPDY_HEADER_SIZE + length);
        encodeDataFrameHeader(buf, streamId, flags, length);
        for (int i = 0; i < 256; i ++) {
            buf.writeInt(RANDOM.nextInt());
        }
        decoder.decode(buf);
        verify(delegate).readDataFrame(streamId, false, buf.slice(SPDY_HEADER_SIZE, length));
        assertFalse(buf.isReadable());
        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free