Home / Function/ testRemoveLastComponentWithOthersLeft() — netty Function Reference

testRemoveLastComponentWithOthersLeft() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java lines 799–808

    @Test
    public void testRemoveLastComponentWithOthersLeft() {
        CompositeByteBuf buf = compositeBuffer();
        buf.addComponent(wrappedBuffer(new byte[]{1, 2}));
        buf.addComponent(wrappedBuffer(new byte[]{1, 2}));
        assertEquals(2, buf.numComponents());
        buf.removeComponent(1);
        assertEquals(1, buf.numComponents());
        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free