Home / Function/ testAddComponentWithNullEntry() — netty Function Reference

testAddComponentWithNullEntry() — netty Function Reference

Architecture documentation for the testAddComponentWithNullEntry() function in AbstractCompositeByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  29202755_17b5_2d0c_4159_3c8c65119964["testAddComponentWithNullEntry()"]
  47bc0a20_e243_89ff_132b_99ac6b23835f["AbstractCompositeByteBufTest"]
  29202755_17b5_2d0c_4159_3c8c65119964 -->|defined in| 47bc0a20_e243_89ff_132b_99ac6b23835f
  style 29202755_17b5_2d0c_4159_3c8c65119964 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java lines 1639–1650

    @Test
    public void testAddComponentWithNullEntry() {
        final ByteBuf buffer = Unpooled.buffer(8).writeZero(8);
        final CompositeByteBuf compositeByteBuf = compositeBuffer(Integer.MAX_VALUE);
        try {
            compositeByteBuf.addComponents(true, new ByteBuf[] { buffer, null });
            assertEquals(8, compositeByteBuf.readableBytes());
            assertEquals(1, compositeByteBuf.numComponents());
        } finally {
            compositeByteBuf.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testAddComponentWithNullEntry() do?
testAddComponentWithNullEntry() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java.
Where is testAddComponentWithNullEntry() defined?
testAddComponentWithNullEntry() is defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java at line 1639.

Analyze Your Own Codebase

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

Try Supermodel Free