testStreamCrcErrorOfEmptyBlock() — netty Function Reference
Architecture documentation for the testStreamCrcErrorOfEmptyBlock() function in Bzip2DecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c0e5e7a4_7580_4ece_1871_cc4c24347da5["testStreamCrcErrorOfEmptyBlock()"] 53eb2ef4_6844_0384_3483_6c7a17c214e0["Bzip2DecoderTest"] c0e5e7a4_7580_4ece_1871_cc4c24347da5 -->|defined in| 53eb2ef4_6844_0384_3483_6c7a17c214e0 style c0e5e7a4_7580_4ece_1871_cc4c24347da5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java lines 105–120
@Test
public void testStreamCrcErrorOfEmptyBlock() {
final ByteBuf in = Unpooled.buffer();
in.writeMedium(MAGIC_NUMBER);
in.writeByte('1'); //block size
in.writeMedium(END_OF_STREAM_MAGIC_1);
in.writeMedium(END_OF_STREAM_MAGIC_2);
in.writeInt(1); //wrong storedCombinedCRC
assertThrows(DecompressionException.class, new Executable() {
@Override
public void execute() {
channel.writeInbound(in);
}
}, "stream CRC error");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testStreamCrcErrorOfEmptyBlock() do?
testStreamCrcErrorOfEmptyBlock() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java.
Where is testStreamCrcErrorOfEmptyBlock() defined?
testStreamCrcErrorOfEmptyBlock() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java at line 105.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free