Home / Function/ testEmptyFrameCompression() — netty Function Reference

testEmptyFrameCompression() — netty Function Reference

Architecture documentation for the testEmptyFrameCompression() function in PerMessageDeflateEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a4ba48e7_df48_400d_8e81_037968595054["testEmptyFrameCompression()"]
  74922fa4_3ca7_d958_57dc_fafad72e442c["PerMessageDeflateEncoderTest"]
  a4ba48e7_df48_400d_8e81_037968595054 -->|defined in| 74922fa4_3ca7_d958_57dc_fafad72e442c
  style a4ba48e7_df48_400d_8e81_037968595054 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateEncoderTest.java lines 287–302

    @Test
    public void testEmptyFrameCompression() {
        EmbeddedChannel encoderChannel = new EmbeddedChannel(new PerMessageDeflateEncoder(9, 15, false));

        TextWebSocketFrame emptyFrame = new TextWebSocketFrame("");

        assertTrue(encoderChannel.writeOutbound(emptyFrame));
        TextWebSocketFrame emptyDeflateFrame = encoderChannel.readOutbound();

        assertEquals(WebSocketExtension.RSV1, emptyDeflateFrame.rsv());
        assertTrue(ByteBufUtil.equals(EMPTY_DEFLATE_BLOCK, emptyDeflateFrame.content()));
        // Unreleasable buffer
        assertFalse(emptyDeflateFrame.release());

        assertFalse(encoderChannel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free