Home / Function/ testCompressionSkip() — netty Function Reference

testCompressionSkip() — netty Function Reference

Architecture documentation for the testCompressionSkip() function in PerFrameDeflateEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a19a93df_f356_bcae_d379_aab66895b151["testCompressionSkip()"]
  d77508f2_7e6d_1869_5652_cb4529317aed["PerFrameDeflateEncoderTest"]
  a19a93df_f356_bcae_d379_aab66895b151 -->|defined in| d77508f2_7e6d_1869_5652_cb4529317aed
  style a19a93df_f356_bcae_d379_aab66895b151 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerFrameDeflateEncoderTest.java lines 166–187

    @Test
    public void testCompressionSkip() {
        EmbeddedChannel encoderChannel = new EmbeddedChannel(
                new PerFrameDeflateEncoder(9, 15, false, ALWAYS_SKIP));
        byte[] payload = new byte[300];
        random.nextBytes(payload);
        BinaryWebSocketFrame binaryFrame = new BinaryWebSocketFrame(true,
                                                                    0, Unpooled.wrappedBuffer(payload));

        // execute
        assertTrue(encoderChannel.writeOutbound(binaryFrame.copy()));
        BinaryWebSocketFrame outboundFrame = encoderChannel.readOutbound();

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

        assertFalse(encoderChannel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free