testBoundEnforced256() — netty Function Reference
Architecture documentation for the testBoundEnforced256() function in BoundedInputStreamTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 49e5f5f3_c996_3104_1079_b783698c2e29["testBoundEnforced256()"] ab2c52d1_4dad_2c5a_94ad_a0909a9613d1["BoundedInputStreamTest"] 49e5f5f3_c996_3104_1079_b783698c2e29 -->|defined in| ab2c52d1_4dad_2c5a_94ad_a0909a9613d1 style 49e5f5f3_c996_3104_1079_b783698c2e29 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/internal/BoundedInputStreamTest.java lines 51–65
@Test
void testBoundEnforced256() throws IOException {
final byte[] bytes = new byte[256];
for (int i = 0; i < bytes.length; i++) {
bytes[i] = (byte) i;
}
try (BoundedInputStream reader = new BoundedInputStream(new ByteArrayInputStream(bytes), bytes.length - 1)) {
for (byte expectedByte : bytes) {
assertEquals(expectedByte, (byte) reader.read());
}
assertThrows(IOException.class, reader::read);
assertThrows(IOException.class, () -> reader.read(new byte[1], 0, 1));
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testBoundEnforced256() do?
testBoundEnforced256() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/BoundedInputStreamTest.java.
Where is testBoundEnforced256() defined?
testBoundEnforced256() is defined in common/src/test/java/io/netty/util/internal/BoundedInputStreamTest.java at line 51.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free