testToStringDoesNotThrowIndexOutOfBounds() — netty Function Reference
Architecture documentation for the testToStringDoesNotThrowIndexOutOfBounds() function in ByteBufUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2ddaaa34_72ec_972f_28f0_519b39817e51["testToStringDoesNotThrowIndexOutOfBounds()"] 1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"] 2ddaaa34_72ec_972f_28f0_519b39817e51 -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7 style 2ddaaa34_72ec_972f_28f0_519b39817e51 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 843–855
@ParameterizedTest(name = PARAMETERIZED_NAME)
@MethodSource("noUnsafe")
public void testToStringDoesNotThrowIndexOutOfBounds(BufferType bufferType) {
CompositeByteBuf buffer = compositeByteBuf(bufferType);
try {
byte[] bytes = "1234".getBytes(CharsetUtil.UTF_8);
buffer.addComponent(buffer(bufferType, bytes.length).writeBytes(bytes));
buffer.addComponent(buffer(bufferType, bytes.length).writeBytes(bytes));
assertEquals("1234", buffer.toString(bytes.length, bytes.length, CharsetUtil.UTF_8));
} finally {
buffer.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testToStringDoesNotThrowIndexOutOfBounds() do?
testToStringDoesNotThrowIndexOutOfBounds() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is testToStringDoesNotThrowIndexOutOfBounds() defined?
testToStringDoesNotThrowIndexOutOfBounds() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 843.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free