testOverflowWhileAddingComponentsViaVarargs() — netty Function Reference
Architecture documentation for the testOverflowWhileAddingComponentsViaVarargs() function in AbstractCompositeByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0505b2d9_5fc0_598a_82d1_1f8addb237fd["testOverflowWhileAddingComponentsViaVarargs()"] 47bc0a20_e243_89ff_132b_99ac6b23835f["AbstractCompositeByteBufTest"] 0505b2d9_5fc0_598a_82d1_1f8addb237fd -->|defined in| 47bc0a20_e243_89ff_132b_99ac6b23835f style 0505b2d9_5fc0_598a_82d1_1f8addb237fd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java lines 1674–1694
@Test
public void testOverflowWhileAddingComponentsViaVarargs() {
int capacity = 1024 * 1024; // 1MB
final ByteBuf buffer = Unpooled.buffer(capacity).writeZero(capacity);
final CompositeByteBuf compositeByteBuf = compositeBuffer(Integer.MAX_VALUE);
try {
assertThrows(IllegalArgumentException.class, new Executable() {
@Override
public void execute() {
for (int i = 0; i >= 0; i += buffer.readableBytes()) {
ByteBuf duplicate = buffer.duplicate();
compositeByteBuf.addComponents(duplicate);
duplicate.retain();
}
}
});
} finally {
compositeByteBuf.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testOverflowWhileAddingComponentsViaVarargs() do?
testOverflowWhileAddingComponentsViaVarargs() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java.
Where is testOverflowWhileAddingComponentsViaVarargs() defined?
testOverflowWhileAddingComponentsViaVarargs() is defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java at line 1674.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free