Home / Function/ testInvalidBlockSize() — netty Function Reference

testInvalidBlockSize() — netty Function Reference

Architecture documentation for the testInvalidBlockSize() function in Bzip2DecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  80bf34e7_f084_fd02_9f92_8f13cf264310["testInvalidBlockSize()"]
  53eb2ef4_6844_0384_3483_6c7a17c214e0["Bzip2DecoderTest"]
  80bf34e7_f084_fd02_9f92_8f13cf264310 -->|defined in| 53eb2ef4_6844_0384_3483_6c7a17c214e0
  style 80bf34e7_f084_fd02_9f92_8f13cf264310 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java lines 74–86

    @Test
    public void testInvalidBlockSize() {
        final ByteBuf in = Unpooled.buffer();
        in.writeMedium(MAGIC_NUMBER);
        in.writeByte('0');  //incorrect block size

        assertThrows(DecompressionException.class, new Executable() {
            @Override
            public void execute() {
                channel.writeInbound(in);
            }
        }, "block size is invalid");
    }

Domain

Subdomains

Frequently Asked Questions

What does testInvalidBlockSize() do?
testInvalidBlockSize() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java.
Where is testInvalidBlockSize() defined?
testInvalidBlockSize() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java at line 74.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free