Home / Function/ testCompressedDataDecodesAndAppendsToOut() — netty Function Reference

testCompressedDataDecodesAndAppendsToOut() — netty Function Reference

Architecture documentation for the testCompressedDataDecodesAndAppendsToOut() function in SnappyFrameDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f9f86a3a_592b_3bd2_6f87_7d921a9acf6c["testCompressedDataDecodesAndAppendsToOut()"]
  8017c2dc_c3bf_3f79_0edd_8dd86487179d["SnappyFrameDecoderTest"]
  f9f86a3a_592b_3bd2_6f87_7d921a9acf6c -->|defined in| 8017c2dc_c3bf_3f79_0edd_8dd86487179d
  style f9f86a3a_592b_3bd2_6f87_7d921a9acf6c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyFrameDecoderTest.java lines 159–178

    @Test
    public void testCompressedDataDecodesAndAppendsToOut() {
        ByteBuf in = Unpooled.wrappedBuffer(new byte[] {
           (byte) 0xff, 0x06, 0x00, 0x00, 0x73, 0x4e, 0x61, 0x50, 0x70, 0x59,
            0x00, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x05, // preamble length
                  0x04 << 2, // literal tag + length
                  0x6e, 0x65, 0x74, 0x74, 0x79 // "netty"
        });

        assertTrue(channel.writeInbound(in));

        ByteBuf expected = Unpooled.wrappedBuffer(new byte[] { 'n', 'e', 't', 't', 'y' });
        ByteBuf actual = channel.readInbound();

        assertEquals(expected, actual);

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free