testReadByteLengthRespected() — netty Function Reference
Architecture documentation for the testReadByteLengthRespected() function in ByteBufStreamTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e391e17b_65d6_8c33_230e_c24d12726429["testReadByteLengthRespected()"] a5486ee2_8de3_00d9_5697_f3849d26246a["ByteBufStreamTest"] e391e17b_65d6_8c33_230e_c24d12726429 -->|defined in| a5486ee2_8de3_00d9_5697_f3849d26246a style e391e17b_65d6_8c33_230e_c24d12726429 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ByteBufStreamTest.java lines 285–301
@Test
public void testReadByteLengthRespected() throws Exception {
// case1
ByteBuf buf = Unpooled.buffer(16);
buf.writeBytes(new byte[] { 1, 2, 3, 4, 5, 6 });
try (ByteBufInputStream in = new ByteBufInputStream(buf, 0)) {
assertThrows(EOFException.class, new Executable() {
@Override
public void execute() throws IOException {
in.readBoolean();
}
});
} finally {
buf.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testReadByteLengthRespected() do?
testReadByteLengthRespected() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufStreamTest.java.
Where is testReadByteLengthRespected() defined?
testReadByteLengthRespected() is defined in buffer/src/test/java/io/netty/buffer/ByteBufStreamTest.java at line 285.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free