testOverflowWhileAddingComponentsViaIterable() — netty Function Reference
Architecture documentation for the testOverflowWhileAddingComponentsViaIterable() function in AbstractCompositeByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 20e94f53_aaeb_3f9f_b11a_b56ed46a86f6["testOverflowWhileAddingComponentsViaIterable()"] 47bc0a20_e243_89ff_132b_99ac6b23835f["AbstractCompositeByteBufTest"] 20e94f53_aaeb_3f9f_b11a_b56ed46a86f6 -->|defined in| 47bc0a20_e243_89ff_132b_99ac6b23835f style 20e94f53_aaeb_3f9f_b11a_b56ed46a86f6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java lines 1696–1716
@Test
public void testOverflowWhileAddingComponentsViaIterable() {
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(Collections.singletonList(duplicate));
duplicate.retain();
}
}
});
} finally {
compositeByteBuf.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testOverflowWhileAddingComponentsViaIterable() do?
testOverflowWhileAddingComponentsViaIterable() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java.
Where is testOverflowWhileAddingComponentsViaIterable() defined?
testOverflowWhileAddingComponentsViaIterable() is defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java at line 1696.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free