forEachByteUnderLeakDetectionShouldNotThrowException() — netty Function Reference
Architecture documentation for the forEachByteUnderLeakDetectionShouldNotThrowException() function in SimpleLeakAwareCompositeByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7487434a_5ecc_aa04_af03_99e709f05559["forEachByteUnderLeakDetectionShouldNotThrowException()"] a03f92f2_c770_3b81_9814_172b2e6a32be["SimpleLeakAwareCompositeByteBufTest"] 7487434a_5ecc_aa04_af03_99e709f05559 -->|defined in| a03f92f2_c770_3b81_9814_172b2e6a32be style 7487434a_5ecc_aa04_af03_99e709f05559 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/SimpleLeakAwareCompositeByteBufTest.java lines 138–156
@Test
public void forEachByteUnderLeakDetectionShouldNotThrowException() {
CompositeByteBuf buf = (CompositeByteBuf) newBuffer(8);
assertInstanceOf(SimpleLeakAwareCompositeByteBuf.class, buf);
CompositeByteBuf comp = (CompositeByteBuf) newBuffer(8);
assertInstanceOf(SimpleLeakAwareCompositeByteBuf.class, comp);
ByteBuf inner = comp.alloc().directBuffer(1).writeByte(0);
comp.addComponent(true, inner);
buf.addComponent(true, comp);
assertEquals(-1, buf.forEachByte(new ByteProcessor() {
@Override
public boolean process(byte value) {
return true;
}
}));
assertTrue(buf.release());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does forEachByteUnderLeakDetectionShouldNotThrowException() do?
forEachByteUnderLeakDetectionShouldNotThrowException() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/SimpleLeakAwareCompositeByteBufTest.java.
Where is forEachByteUnderLeakDetectionShouldNotThrowException() defined?
forEachByteUnderLeakDetectionShouldNotThrowException() is defined in buffer/src/test/java/io/netty/buffer/SimpleLeakAwareCompositeByteBufTest.java at line 138.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free