Home / Function/ testInvalidCompressedLength() — netty Function Reference

testInvalidCompressedLength() — netty Function Reference

Architecture documentation for the testInvalidCompressedLength() function in Lz4FrameDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  afd279b2_9e0a_5c66_7c85_a6eae67da5e7["testInvalidCompressedLength()"]
  6397f8d2_f5d1_2f9d_0dfd_f6f73dd0690c["Lz4FrameDecoderTest"]
  afd279b2_9e0a_5c66_7c85_a6eae67da5e7 -->|defined in| 6397f8d2_f5d1_2f9d_0dfd_f6f73dd0690c
  style afd279b2_9e0a_5c66_7c85_a6eae67da5e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/Lz4FrameDecoderTest.java lines 65–77

    @Test
    public void testInvalidCompressedLength() {
        final byte[] data = Arrays.copyOf(DATA, DATA.length);
        data[12] = (byte) 0xFF;

        final ByteBuf in = Unpooled.wrappedBuffer(data);
        assertThrows(DecompressionException.class, new Executable() {
            @Override
            public void execute() {
                channel.writeInbound(in);
            }
        }, "invalid compressedLength");
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free