Home / Function/ testCompressionSkipForBinaryFrame() — netty Function Reference

testCompressionSkipForBinaryFrame() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4921bd5e_32cb_a37e_1992_74a1e64ce57f["testCompressionSkipForBinaryFrame()"]
  74922fa4_3ca7_d958_57dc_fafad72e442c["PerMessageDeflateEncoderTest"]
  4921bd5e_32cb_a37e_1992_74a1e64ce57f -->|defined in| 74922fa4_3ca7_d958_57dc_fafad72e442c
  style 4921bd5e_32cb_a37e_1992_74a1e64ce57f 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 178–195

    @Test
    public void testCompressionSkipForBinaryFrame() {
        EmbeddedChannel encoderChannel = new EmbeddedChannel(new PerMessageDeflateEncoder(9, 15, false,
                                                                                          ALWAYS_SKIP));
        byte[] payload = new byte[300];
        random.nextBytes(payload);

        WebSocketFrame binaryFrame = new BinaryWebSocketFrame(Unpooled.wrappedBuffer(payload));

        assertTrue(encoderChannel.writeOutbound(binaryFrame.copy()));
        WebSocketFrame outboundFrame = encoderChannel.readOutbound();

        assertEquals(0, outboundFrame.rsv());
        assertArrayEquals(payload, ByteBufUtil.getBytes(outboundFrame.content()));
        assertTrue(outboundFrame.release());

        assertFalse(encoderChannel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testCompressionSkipForBinaryFrame() do?
testCompressionSkipForBinaryFrame() 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 testCompressionSkipForBinaryFrame() defined?
testCompressionSkipForBinaryFrame() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateEncoderTest.java at line 178.

Analyze Your Own Codebase

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

Try Supermodel Free