Home / Function/ testDiscardUnknownFrame() — netty Function Reference

testDiscardUnknownFrame() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java lines 833–847

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

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

        decoder.decode(buf);
        verifyNoInteractions(delegate);
        assertFalse(buf.isReadable());
        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

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