Home / Function/ testAllocateOnHeapBufferOverflowsOutputSize() — netty Function Reference

testAllocateOnHeapBufferOverflowsOutputSize() — netty Function Reference

Architecture documentation for the testAllocateOnHeapBufferOverflowsOutputSize() function in Lz4FrameEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d7a1ea84_8c61_5cb6_8338_ce1f96e8ed0c["testAllocateOnHeapBufferOverflowsOutputSize()"]
  16452743_407c_c5f6_ee9f_baa8b84020f0["Lz4FrameEncoderTest"]
  d7a1ea84_8c61_5cb6_8338_ce1f96e8ed0c -->|defined in| 16452743_407c_c5f6_ee9f_baa8b84020f0
  style d7a1ea84_8c61_5cb6_8338_ce1f96e8ed0c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/Lz4FrameEncoderTest.java lines 185–197

    @Test
    public void testAllocateOnHeapBufferOverflowsOutputSize() {
        final int maxEncodeSize = Integer.MAX_VALUE;
        final Lz4FrameEncoder encoder = newEncoder(Lz4Constants.DEFAULT_BLOCK_SIZE, maxEncodeSize);
        when(buffer.readableBytes()).thenReturn(maxEncodeSize);
        buffer.writerIndex(maxEncodeSize);
        assertThrows(EncoderException.class, new Executable() {
            @Override
            public void execute() {
                encoder.allocateBuffer(ctx, buffer, false);
            }
        });
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free