Home / Function/ testCompressNone() — netty Function Reference

testCompressNone() — netty Function Reference

Architecture documentation for the testCompressNone() function in ZlibTest.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 6

Entity Profile

Dependency Diagram

graph TD
  099a1ed6_9fe3_3fd6_7405_b857b222559f["testCompressNone()"]
  7036d690_c470_1931_3ca2_5fffb656bebb["ZlibTest"]
  099a1ed6_9fe3_3fd6_7405_b857b222559f -->|defined in| 7036d690_c470_1931_3ca2_5fffb656bebb
  9b5f9061_d9e5_d62f_c29a_31a2beb090eb["testZLIB()"]
  9b5f9061_d9e5_d62f_c29a_31a2beb090eb -->|calls| 099a1ed6_9fe3_3fd6_7405_b857b222559f
  f257d438_b442_f0d3_e131_7a93c3e0bb65["testNONE()"]
  f257d438_b442_f0d3_e131_7a93c3e0bb65 -->|calls| 099a1ed6_9fe3_3fd6_7405_b857b222559f
  feab9313_a73f_4959_e55e_b6923872a62a["testGZIP()"]
  feab9313_a73f_4959_e55e_b6923872a62a -->|calls| 099a1ed6_9fe3_3fd6_7405_b857b222559f
  139a3315_9ec1_0d76_6f08_21605fc189c2["testZLIB_OR_NONE()"]
  139a3315_9ec1_0d76_6f08_21605fc189c2 -->|calls| 099a1ed6_9fe3_3fd6_7405_b857b222559f
  982074fe_becf_aebf_5f7f_bbe0f31cde4a["testZLIB_OR_NONE2()"]
  982074fe_becf_aebf_5f7f_bbe0f31cde4a -->|calls| 099a1ed6_9fe3_3fd6_7405_b857b222559f
  d968b240_bdce_1ae2_5c2c_33340e74e883["testZLIB_OR_NONE3()"]
  d968b240_bdce_1ae2_5c2c_33340e74e883 -->|calls| 099a1ed6_9fe3_3fd6_7405_b857b222559f
  4ce8bff0_577d_fb67_462a_3c492abedec9["dispose()"]
  099a1ed6_9fe3_3fd6_7405_b857b222559f -->|calls| 4ce8bff0_577d_fb67_462a_3c492abedec9
  style 099a1ed6_9fe3_3fd6_7405_b857b222559f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/ZlibTest.java lines 234–268

    private void testCompressNone(ZlibWrapper encoderWrapper, ZlibWrapper decoderWrapper) throws Exception {
        EmbeddedChannel chEncoder = new EmbeddedChannel(createEncoder(encoderWrapper));
        EmbeddedChannel chDecoderZlib = new EmbeddedChannel(createDecoder(decoderWrapper));

        try {
            // Closing an encoder channel without writing anything should generate both header and footer.
            assertTrue(chEncoder.finish());

            for (;;) {
                ByteBuf deflatedData = chEncoder.readOutbound();
                if (deflatedData == null) {
                    break;
                }
                chDecoderZlib.writeInbound(deflatedData);
            }

            // Decoder should not generate anything at all.
            boolean decoded = false;
            for (;;) {
                ByteBuf buf = chDecoderZlib.readInbound();
                if (buf == null) {
                    break;
                }

                buf.release();
                decoded = true;
            }
            assertFalse(decoded, "should decode nothing");

            assertFalse(chDecoderZlib.finish());
        } finally {
            dispose(chEncoder);
            dispose(chDecoderZlib);
        }
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testCompressNone() do?
testCompressNone() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/ZlibTest.java.
Where is testCompressNone() defined?
testCompressNone() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/ZlibTest.java at line 234.
What does testCompressNone() call?
testCompressNone() calls 1 function(s): dispose.
What calls testCompressNone()?
testCompressNone() is called by 6 function(s): testGZIP, testNONE, testZLIB, testZLIB_OR_NONE, testZLIB_OR_NONE2, testZLIB_OR_NONE3.

Analyze Your Own Codebase

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

Try Supermodel Free