Home / Function/ testCompression() — netty Function Reference

testCompression() — netty Function Reference

Architecture documentation for the testCompression() function in AbstractEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a69091e5_0c69_a627_0aba_def62c636e95["testCompression()"]
  e75c2d44_55ff_20fb_58c6_157d886d9d30["AbstractEncoderTest"]
  a69091e5_0c69_a627_0aba_def62c636e95 -->|defined in| e75c2d44_55ff_20fb_58c6_157d886d9d30
  4a46f19c_31b4_8a02_2001_ecaf4f5eca02["testCompressionOfSmallChunkOfData()"]
  4a46f19c_31b4_8a02_2001_ecaf4f5eca02 -->|calls| a69091e5_0c69_a627_0aba_def62c636e95
  a6173f2f_d8db_9c30_9616_74a9e1489996["testCompressionOfLargeChunkOfData()"]
  a6173f2f_d8db_9c30_9616_74a9e1489996 -->|calls| a69091e5_0c69_a627_0aba_def62c636e95
  style a69091e5_0c69_a627_0aba_def62c636e95 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractEncoderTest.java lines 86–97

    protected void testCompression(final ByteBuf data) throws Exception {
        final int dataLength = data.readableBytes();
        assertTrue(channel.writeOutbound(data.retain()));
        assertTrue(channel.finish());
        assertEquals(0, data.readableBytes());

        ByteBuf decompressed = readDecompressed(dataLength);
        assertEquals(data.resetReaderIndex(), decompressed);

        decompressed.release();
        data.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testCompression() do?
testCompression() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractEncoderTest.java.
Where is testCompression() defined?
testCompression() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractEncoderTest.java at line 86.
What calls testCompression()?
testCompression() is called by 2 function(s): testCompressionOfLargeChunkOfData, testCompressionOfSmallChunkOfData.

Analyze Your Own Codebase

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

Try Supermodel Free