Home / Function/ testLargeAmountOfDataIsCompressed() — netty Function Reference

testLargeAmountOfDataIsCompressed() — netty Function Reference

Architecture documentation for the testLargeAmountOfDataIsCompressed() function in SnappyFrameEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  66d71513_85a0_8930_1def_4a7f3318f35e["testLargeAmountOfDataIsCompressed()"]
  7bf4ca4f_ca32_181e_5b9a_f9630200b493["SnappyFrameEncoderTest"]
  66d71513_85a0_8930_1def_4a7f3318f35e -->|defined in| 7bf4ca4f_ca32_181e_5b9a_f9630200b493
  style 66d71513_85a0_8930_1def_4a7f3318f35e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyFrameEncoderTest.java lines 54–76

    @Test
    public void testLargeAmountOfDataIsCompressed() throws Exception {
        ByteBuf in = Unpooled.wrappedBuffer(new byte[] {
            'n', 'e', 't', 't', 'y', 'n', 'e', 't', 't', 'y',
            'n', 'e', 't', 't', 'y', 'n', 'e', 't', 't', 'y'
        });

        channel.writeOutbound(in);
        assertTrue(channel.finish());

        ByteBuf expected = Unpooled.wrappedBuffer(new byte[] {
            (byte) 0xff, 0x06, 0x00, 0x00, 0x73, 0x4e, 0x61, 0x50, 0x70, 0x59,
             0x00, 0x0E, 0x00, 0x00, 0x3b, 0x36, -0x7f, 0x37,
                   0x14, 0x10,
                   'n', 'e', 't', 't', 'y',
                   0x3a, 0x05, 0x00
        });
        ByteBuf actual = channel.readOutbound();
        assertEquals(expected, actual);

        expected.release();
        actual.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testLargeAmountOfDataIsCompressed() do?
testLargeAmountOfDataIsCompressed() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyFrameEncoderTest.java.
Where is testLargeAmountOfDataIsCompressed() defined?
testLargeAmountOfDataIsCompressed() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyFrameEncoderTest.java at line 54.

Analyze Your Own Codebase

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

Try Supermodel Free