Home / Function/ testEmptyFrameDecompression() — netty Function Reference

testEmptyFrameDecompression() — netty Function Reference

Architecture documentation for the testEmptyFrameDecompression() function in PerMessageDeflateDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9b12b06e_12b7_016b_6fb0_d5ade68080da["testEmptyFrameDecompression()"]
  5fb9cabd_f848_d24f_11ed_16ea8470984d["PerMessageDeflateDecoderTest"]
  9b12b06e_12b7_016b_6fb0_d5ade68080da -->|defined in| 5fb9cabd_f848_d24f_11ed_16ea8470984d
  style 9b12b06e_12b7_016b_6fb0_d5ade68080da fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateDecoderTest.java lines 325–340

    @Test
    public void testEmptyFrameDecompression() {
        EmbeddedChannel decoderChannel = new EmbeddedChannel(new PerMessageDeflateDecoder(false, 0));

        TextWebSocketFrame emptyDeflateBlockFrame = new TextWebSocketFrame(true, WebSocketExtension.RSV1,
                                                                           EMPTY_DEFLATE_BLOCK);

        assertTrue(decoderChannel.writeInbound(emptyDeflateBlockFrame));
        TextWebSocketFrame emptyBufferFrame = decoderChannel.readInbound();

        assertFalse(emptyBufferFrame.content().isReadable());

        // Composite empty buffer
        assertTrue(emptyBufferFrame.release());
        assertFalse(decoderChannel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testEmptyFrameDecompression() do?
testEmptyFrameDecompression() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateDecoderTest.java.
Where is testEmptyFrameDecompression() defined?
testEmptyFrameDecompression() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateDecoderTest.java at line 325.

Analyze Your Own Codebase

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

Try Supermodel Free