Home / Function/ testZeroValueLength() — netty Function Reference

testZeroValueLength() — netty Function Reference

Architecture documentation for the testZeroValueLength() function in SpdyHeaderBlockRawDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b4e29cbf_c6ba_894a_6463_af0e624b0e32["testZeroValueLength()"]
  9d24b120_0e9f_df39_05af_436eac53cd12["SpdyHeaderBlockRawDecoderTest"]
  b4e29cbf_c6ba_894a_6463_af0e624b0e32 -->|defined in| 9d24b120_0e9f_df39_05af_436eac53cd12
  style b4e29cbf_c6ba_894a_6463_af0e624b0e32 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawDecoderTest.java lines 193–210

    @Test
    public void testZeroValueLength() throws Exception {
        ByteBuf headerBlock = Unpooled.buffer(16);
        headerBlock.writeInt(1);
        headerBlock.writeInt(4);
        headerBlock.writeBytes(nameBytes);
        headerBlock.writeInt(0);
        decoder.decode(ByteBufAllocator.DEFAULT, headerBlock, frame);
        decoder.endHeaderBlock(frame);

        assertFalse(headerBlock.isReadable());
        assertFalse(frame.isInvalid());
        assertEquals(1, frame.headers().names().size());
        assertTrue(frame.headers().contains(name));
        assertEquals(1, frame.headers().getAll(name).size());
        assertEquals("", frame.headers().get(name));
        headerBlock.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testZeroValueLength() do?
testZeroValueLength() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawDecoderTest.java.
Where is testZeroValueLength() defined?
testZeroValueLength() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawDecoderTest.java at line 193.

Analyze Your Own Codebase

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

Try Supermodel Free