Home / Function/ testDecodeUnknownFrame() — netty Function Reference

testDecodeUnknownFrame() — netty Function Reference

Architecture documentation for the testDecodeUnknownFrame() function in SpdyUnknownFrameDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  bbc032ec_c3fa_c93b_f77c_a3c41f349742["testDecodeUnknownFrame()"]
  a206464e_41bc_b3aa_6e4b_073c2226d568["SpdyUnknownFrameDecoderTest"]
  bbc032ec_c3fa_c93b_f77c_a3c41f349742 -->|defined in| a206464e_41bc_b3aa_6e4b_073c2226d568
  style bbc032ec_c3fa_c93b_f77c_a3c41f349742 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyUnknownFrameDecoderTest.java lines 58–72

    @Test
    public void testDecodeUnknownFrame() throws Exception {
        short type = 200;
        byte flags = (byte) 0xFF;
        int length = 8;

        ByteBuf buf = Unpooled.buffer(SPDY_HEADER_SIZE + length);
        encodeControlFrameHeader(buf, type, flags, length);
        final long value = RANDOM.nextLong();
        buf.writeLong(value);

        decoder.decode(buf);
        verify(delegate).readUnknownFrame(type, flags, buf.slice(SPDY_HEADER_SIZE, 8));
        assertFalse(buf.isReadable());
    }

Domain

Subdomains

Frequently Asked Questions

What does testDecodeUnknownFrame() do?
testDecodeUnknownFrame() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyUnknownFrameDecoderTest.java.
Where is testDecodeUnknownFrame() defined?
testDecodeUnknownFrame() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyUnknownFrameDecoderTest.java at line 58.

Analyze Your Own Codebase

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

Try Supermodel Free